Skip to content

KaronAmI/findIndex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

find-my-index

Build Status

查找元素在数组中的下标

用法:

let findIndex = require('find-my-index')
findIndex([1, 2, 3, 4], 3) // 2
findIndex(['a', 'b', 'c'], 'b') // 1

About

Find the array subscript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published