Dictionary.withKeys
by @sasial-dev to restrict what keys can appear in a given dictionary.
Array.difference
andArray.differenceSymmetric
to find the difference between two or more arrays.Set.difference
andSet.differenceSymmetric
to find the difference between two or more sets.
- Typings for
Array.concat
, which previously returnedT[][]
instead ofT[]
.
- Implemented
Array.is: (value: any) -> boolean
to check if a given value is an array.
- If
update
is called with a key that doesn't exist in the specified dictionary, the key's value is set to the key itself. Fix by @reselim in PR #7. - Added
aftman.toml
and switched GitHub workflows over to use aftman.
- Fixed a bug where
Array.concat(Deep)
,Dictionary.merge(Deep)
andSet.merge
would not accept holes (nil
values) in their arguments. This would cause the function to stop processing further arguments once it found anil
value. - Fixed a bug where
Array.insert
would not insert the element at the correct index. An index of0
will now insert the element at the end of the array.length+1
will also insert the element at the end of the array.length+2
(or greater) will be ignored, and the original array will be returned. - Bumped tooling versions:
- rojo to v7.1.1
- stylua to v0.13.1
- selene to v0.17.0
- Basic TypeScript (roblox-ts) support (no tsdoc yet)! 🎉
- Implemented
isEmpty
- Added typings to
equalObjects
- Added aliases for
Array.concat
,Array.concatDeep
,Array.push
,Array.unshift
,Array.find
,Array.includes
,Dictionary.join
,Dictionary.joinDeep
,Set.fromArray
,Set.merge
,Set.delete
- Added doc pages for installation and usage samples
- Exposed
isEmpty
andequalObjects
from the root module - Improved typings for methods accepting predictes
- Updated documentation for some methods
- Fixed
Dictionary.flatten
being shown in theArray
docs (wrong@within
tag)
Initial development version.