Filters an Object or Map by testing entry uniqueness with a callback.
unique-object-by
Filters an Object or Map by testing entry uniqueness with a callback.
This module is an alias of unique-map-by
, which supports both Maps and Objects.
Installation
npm install unique-object-by --save
Usage Example
-- -------------------- ---- ------- ----- -------------- - --------------------------- ----- --- - - -- ------ -------- -- ------ -------- -- ------ ----------- - ----- - - ------------------- ----- ------ -- ----------- ---- -- ------ ------- ---- -- --------- ---- -- ------ ----------
For more details, see the documentation for the unique-map-by
module.
HomePage
https://github.com/lamansky/unique-object-by
Repository
git+https://github.com/lamansky/unique-object-by.git
来源:JavaScript中文网 ,转载请注明来源 https://www.javascriptcn.com/post/60056cc781e8991b448e64bd