有以下array[{name:'小红',age:15},{name:'小明',age:14},{name:'小强',age:13},{name:'老张',age:22},{name:'王小兰',age:16},{name:'张小',age:18},]能否利用正则和findIndex类似的方法,来匹配出所有符合name中带有‘小’的index?比如这次返回的是[0,1,2,4,5]
[{name:'小红',age:15},{name:'小明',age:14},{name:'小强',age:13},{name:'老张',age:22},{name:'王小兰',age:16},{name:'张小',age:18},]能否利用正则和findIndex类似的方法,来匹配出所有符合name中带有‘小’的index?比如这次返回的是[0,1,2,4,5]
{name:'小红',age:15},{name:'小明',age:14},{name:'小强',age:13},{name:'老张',age:22},{name:'王小兰',age:16},{name:'张小',age:18},]能否利用正则和findIndex类似的方法,来匹配出所有符合name中带有‘小’的index?比如这次返回的是[0,1,2,4,5]
{name:'小明',age:14},{name:'小强',age:13},{name:'老张',age:22},{name:'王小兰',age:16},{name:'张小',age:18},]能否利用正则和findIndex类似的方法,来匹配出所有符合name中带有‘小’的index?比如这次返回的是[0,1,2,4,5]
{name:'小强',age:13},{name:'老张',age:22},{name:'王小兰',age:16},{name:'张小',age:18},]能否利用正则和findIndex类似的方法,来匹配出所有符合name中带有‘小’的index?比如这次返回的是[0,1,2,4,5]
{name:'老张',age:22},{name:'王小兰',age:16},{name:'张小',age:18},]能否利用正则和findIndex类似的方法,来匹配出所有符合name中带有‘小’的index?比如这次返回的是[0,1,2,4,5]
{name:'王小兰',age:16},{name:'张小',age:18},]能否利用正则和findIndex类似的方法,来匹配出所有符合name中带有‘小’的index?比如这次返回的是[0,1,2,4,5]
{name:'张小',age:18},]能否利用正则和findIndex类似的方法,来匹配出所有符合name中带有‘小’的index?比如这次返回的是[0,1,2,4,5]
]能否利用正则和findIndex类似的方法,来匹配出所有符合name中带有‘小’的index?比如这次返回的是[0,1,2,4,5]
能否利用正则和findIndex类似的方法,来匹配出所有符合name中带有‘小’的index?比如这次返回的是[0,1,2,4,5]
比如这次返回的是[0,1,2,4,5]
相关分类