lib/utils

Methods

(static) customEncodeURIComponent()

Source:

Encode all invalid URI characters, except the ones we've decided we don't want to

(static) pick(propertyPath, defaultValue)

Source:

Curried get function to pick a property from an object Will safely pick a property from an object and guards against the infamous "can not read property of undefined".

Parameters:
Name Type Description
propertyPath String
defaultValue Any

A default value to be returned when no value was found at the path

Returns:

Function

get :: String -> Object -> Any