wyclodash

lodash function practice

Usage no npm install needed!

<script type="module">
  import wyclodash from 'https://cdn.skypack.dev/wyclodash';
</script>

README

Document

Install

npm i wyclodash

Example

file : ex1.js

const _= require('wyclodash')

console.log('_.difference([2, 1], [2, 3]) =', _.difference([2, 1], [2, 3]))

Run

> node ex1.js
_.difference([2, 1], [2, 3]) = [ 1 ]

file : ex2.js

const _ = require('wyclodash')

console.log('_.drop([1, 2, 3]) = ', _.drop([1, 2, 3]))

Run

> node ex2.js
_.drop([1, 2, 3]) =  [ 2, 3 ]

file : ex3.js

const _ = require('wyclodash')

console.log('_.flattenDeep([1, [2, [3, [4]], 5]]) = ', _.flattenDeep([1, [2, [3, [4]], 5]]))

Run

> node ex3.js
_.flattenDeep([1, [2, [3, [4]], 5]]) =  [ 1, 2, 3, 4, 5 ]