npm

Need private packages and team management tools?Check out npm Orgs. »

xza

2.17.4 • Public • Published

xza (lodash mixin)

Extended lodash

npm version Build Status Maintainability

これは簡単なコードの寄せ集めです。 読み込むだけでlodashを拡張します。

npm install xza --save
const _ = require('xza').lodash

utility

  • _.sizeof( obj )
  • _.strToNumber( str, returnValue = NaN )
  • _.replaceAll( str, obj )
  • _.toHalfString( str )
  • _.whiteSpaceRemover( str )
  • _.toDateString( obj )
  • _.splitUppercase(str,type)
  • _.toText( obj )
  • _.setTimeout( [,delay], fn , [,params...])
  • _.includesString( string, searchString)
  • _.sma( values, range, roundNumber)

example

objects

  • _.deepKeys( obj )
  • _.commonPath( paths )
  • _.compactObject( obj )
  • _.flattenObject( obj, separator='_')
  • _.eachObject( obj, fn )
  • _.mapObject( obj, fn )
  • _.rejectObject( obj, fn )
  • _.filterObject( obj, fn )

objelity

math

  • _.diffRate(base, target, round)
  • _.progressRate(target, progress, round)
  • _.addChangeInRates(array, name, [..newName])
const { math } = require('xza')
  • math.sum(num[])
  • math.sumBy(object[])

example

bizday(Business Day)

README.md

install

npm i xza

Downloadsweekly downloads

83

version

2.17.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability