Pick object properties by synonyms. Useful to avoid remembering exact option names from user perspective.
let pick =let result =
pick(object, properties, keepRest=false)
Return an object with properties picked by the list or dict with aliases. Aliases are matched in priority order, ie. first matching name is picked. Each alias can be an array or a comma/space-separated string.
// pick by dictlet a b =// pick by listlet c d e =// pick by stringlet f g =
keepRest defines if not listed object properties should be transfered to resulting object or discarded.
- defined − get first non-undefined out of a list of values
- update-diff − update object state by mapping diff.
(c) 2017 Dima Yv. MIT License