Skip to content

penggelies07/common-functions

Repository files navigation

common-functions

Commonly used functions when in development

array

  • chunk 数组按规格拆分成小数组
  • compact 数组去除无效值(false, null, 0, '', undefined, NaN)
  • difference 数组过滤指定数组
  • drop 数组去除前 n 个元素,然后返回剩余的部分
  • dropRight 数组去除后 n 个元素,然后返回剩余的部分
  • dropRightWhile
  • dropWhile
  • fill 使用value值来填充(也就是替换)array,从start位置开始, 到end位置结束(但不包含end位置)

About

Commonly used functions when in development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published