xza
v2.17.4
Published
Extended lodash
Downloads
58
Readme
xza (lodash mixin)
Extended lodash
これは簡単なコードの寄せ集めです。 読み込むだけで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)
objects
- _.deepKeys( obj )
- _.commonPath( paths )
- _.compactObject( obj )
- _.flattenObject( obj, separator='_')
- _.eachObject( obj, fn )
- _.mapObject( obj, fn )
- _.rejectObject( obj, fn )
- _.filterObject( obj, fn )
math
- _.diffRate(base, target, round)
- _.progressRate(target, progress, round)
- _.addChangeInRates(array, name, [..newName])
const { math } = require('xza')
- math.sum(num[])
- math.sumBy(object[])