Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

jerrylodash

jerry-chaung3ISC1.0.1

我實作的lodash

readme

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)