node第三方库学习笔记(6)

每天学习几个node库 o(^▽^)┛———————————————————— in-array github链接: https://github.com/jonschlinkert/in-array 这个库提供了填充数组的方法,原理是遍历数组判断和检查项是否相同 Tips: 默认参数可以通过arr = arr ...

node第三方库学习笔记(5)

每天学习几个node库 o(^▽^)┛———————————————————— filled-array github链接: https://github.com/sindresorhus/filled-array 这个库提供了填充数组的方法,原理如下: 当未指定自定义规则填充数组时,使用array.fill的原...

node第三方库学习笔记(4)

每天学习几个node库 o(^▽^)┛———————————————————— array-range github链接: https://github.com/mattdesl/array-range 这个库提供了生成固定范围数组的方法,原理是在for循环中在一个空数组中从开始项填入从指定数开始自增的int变量...

node第三方库学习笔记(3)

每天学习几个node库 o(^▽^)┛———————————————————— arr-flatten github链接: https://github.com/jonschlinkert/arr-flatten 这个库提供了扁平化数组的方法,原理是遍历数组,判断数组每一项是否为数组,并且对每一项为数组的数组项进...

node第三方库学习笔记(2)

每天学习几个node库 o(^▽^)┛———————————————————— array-first github链接: https://github.com/jonschlinkert/array-first 这个库提供了获取一个数组前几位的序列的方法,原理是基于javascript对数组的原生方法slice...

node第三方库学习笔记(1)

每天学习几个node库,第一个 o(^▽^)┛———————————————————— is sorted github链接: https://github.com/dcousens/is-sorted 这个库提供了判断一个数组队列是否为制定条件排列的方法,方法默认有两个参数,一个是需要判断的数组,一个是自定义的...

first blog

这是我的第一篇博客话说我已经踏入前端行业两年多了,终于开始写自己的博客了,也希望自己的博客对所有的读者能起到帮助