1.0.1 • Published 6 years ago
jerrylodash v1.0.1
Install
$ npm i jerrylodash
Document
file:///C:/Users/user/Desktop/se107a/exercise/jerrylodash/docs/-_.html
Example
File : test.js
const _ = require('./index');
console.log('_.indexOf([1, 2, 1, 2], 2) = ' , _.indexOf([1, 2, 1, 2], 2))
console.log('_.indexOf([1, 2, 1, 2], 2, 2) = ' , _.indexOf([1, 2, 1, 2], 2, 2))
Run
$ node test.js
_.indexOf([1, 2, 1, 2], 2, 2)
// => 3
Test
$mocha
_.indexOf([1, 2, 1, 2], 2) = 1
_.indexOf([1, 2, 1, 2], 2, 2) = 3
測試套件
√ 測試範例:_.indexOf([1, 2, 1, 2], 2) = 1
√ _.indexOf([1, 2, 1, 2], 2, 2) = 3
2 passing (19ms)