find-my-index

1.0.3 • Public • Published

find-my-index

Build Status

查找元素在数组中的下标

用法:

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

Readme

Keywords

Package Sidebar

Install

npm i find-my-index

Weekly Downloads

2

Version

1.0.3

License

ISC

Unpacked Size

1.24 kB

Total Files

5

Last publish

Collaborators

  • czj2018