MarkosKon / compare-object-field

A small library with a function that compares an object's field with a value and two others that use the previous to filter arrays of objects.
MIT License
1 stars 0 forks source link

Export operations in an object #1

Open MarkosKon opened 5 years ago

MarkosKon commented 5 years ago

Export implemented operation functions (called predefined operations in source) as an object. This way we can initialize them easier with object spread. If we want to "map" them to different names we won't get any benefits, but it's nice to have the option.

It's a breaking change obviously.