📜  lodash 打字稿代码示例

📅  最后修改于: 2022-03-11 14:48:36.088000             🧑  作者: Mango

代码示例1
// Installation
npm i --save lodash

// Types
npm i --save @types/lodash

// Usage
import { flatten, isEqual, last, omit, pick, pickBy, uniq } from 'lodash';
flatten([[1,2],[3,4]]) // [ 1, 2, 3, 4 ]
last([ 1, 2, 3, 4 ]) // 4
uniq([1,2,3,1,2,3,2]) // [ 1, 2, 3 ]