Releases: ascartabelli/lamb
Releases · ascartabelli/lamb
v0.28.0
difference
now accepts array-like objects- String padding functions now convert to string
non-nil
sources before using them - String padding functions won’t throw errors for
nil
values passed as padding chars and use the default value instead flatten
andshallowFlatten
now throw an exception only fornil
values, converts array-likes to arrays and treat every other value as an empty arraydifference
now throws an exception only fornil
values passed as the main parameter; other unexpected values will be treated as empty arraysdifference
parameters but than the main one will be treated as an empty array if they aren’t array-likefromPairs
now throw exceptions only fornil
values, other unexpected values will be treated as empty arrayshas
andhasKey
now throw exceptions only fornil
values, other unexpected values will be converted to Object- Completed "first round" of test updating
v0.27.0
- Renamed
insert
tosortedInsert
- Added
insert
,insertAt
,reduceWith
andreduceRightWith
v0.26.0
Added rename
, renameKeys
and renameWith
v0.25.1
- Added
keys
as a shim of ES6’sObject.keys
enumerables
,pairs
,tear
andvalues
now throw a TypeError if supplied withnull
orundefined
ownPairs
,ownValues
andtearOwn
now throw a TypeError only if supplied withnull
orundefined
regardless of the ECMAScript engine you are using- minor optimization in accessors’ internals
v0.24.0
- Added
updatePath
andupdatePathIn
setPath
andsetPathIn
now treat non-enumerable properties encountered in a path as non-existent properties- Updated dev dependencies and .travis.yml
v0.23.0
- Added
getIndex
,setIndex
andupdateIndex
getPath
andgetPathIn
now support negative indexes- The function returned by
getAt
now throw exceptions only if called withnull
orundefined
and returnsundefined
for any other non-array-like object
v0.22.0
Added updateIn
, updateKey
and updateAt
v0.21.0
getPathIn
andgetPath
now returnundefined
for any non existent path, instead of throwing exceptions when anundefined
value was a part of the path instead of being its target- Renamed
sequence
togenerate
to avoid confusion with other languages, concepts and libraries - Added
count
,countBy
,index
,indexBy
v0.20.0
- Added
setPath
andsetPathIn
- The
mergeOwn
function now convertsnull
andundefined
values to empty objects instead of throwing exceptions - Improved
setIn
/setKey
tests
v0.19.0
- Renamed
getWithPath
togetPathIn
- Added
getPath
andreverse