项目原始demo,不改动
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
xzx 2ec7739298 [Version] V.3.8 4 년 전
..
.npmignore [Version] V.3.8 4 년 전
LICENSE [Version] V.3.8 4 년 전
README.md [Version] V.3.8 4 년 전
index.js [Version] V.3.8 4 년 전
package.json [Version] V.3.8 4 년 전
test.js [Version] V.3.8 4 년 전

README.md

indexes-of

like Array/String#indexOf but return all the indexes in an array.

var indexesOf = require('indexes-of')

var twosIndexes = indexesOf([1, 2, 3, 4, 5, 4, 3, 2, 1], 2)

console.log(twosIndexes)

// [1, 7]

Haiku

  • A 5 line module.
  • But the tests are 40 lines.
  • npm publish.

License

MIT