@panjingshuang/pjs-utils

1.0.1 • Public • Published

pjs-utils

just to store my tools function make my code work more simple

  • install
npm install @panjingshuang/pjs-utils
  • use
  import { forEachCanReturn } from '@panjingshuang/pjs-utils'
  
  const array = [{
      id: 2
    }, {
      id: 4
    }, {
      id: 5
    }]
    const item = forEachCanReturn(array, (item) => {
      if (item.id > 3) return item
    })
    console.log(item)

Readme

Keywords

none

Package Sidebar

Install

npm i @panjingshuang/pjs-utils

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

1.32 kB

Total Files

5

Last publish

Collaborators

  • panjingshuang