API reference up.util
module

Helper functions for basic JavaScript values.

Most functions are predicates like up.util.isPresent() or up.util.isBlank(), or list helpers like up.util.uniq(), up.util.reject() and up.util.pick(). They are similar to Lodash, but feature parity is not a goal. The module also parses the formats used in Unpoly's attributes: up.util.parseRelaxedJSON() reads Relaxed JSON, and up.util.normalizeURL() and up.util.parseURL() work with URLs.


Features