Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.77 KB

File metadata and controls

32 lines (24 loc) · 1.77 KB

Module: lib.utils

README -> API Index -> Modules Index -> lib.utils

Source: src/lib/utils.js

Cross-module normalization aliases plus shared classification helpers.

Exported Functions

  • isArray - Alias passthrough to lib.array.is.
  • toArray - Alias passthrough to lib.array.to.
  • isHash - Alias passthrough to lib.hash.is.
  • toHash - Alias passthrough to lib.hash.to.
  • deepCopy - Alias passthrough to lib.hash.deepCopy.
  • isScalar - Determine whether a value is a scalar (leaf value).
  • toString - Alias passthrough to lib.str.to.
  • baseType - Determine the base type of a value, optionally comparing against allowed types.
  • isEmpty - Determine whether a value should be treated as "empty".
  • linkType - Classify a link-like value or test membership against allowed types.
  • clamp - Clamp a value to an allowed set.
  • toNumber - Coerce a value into a finite number.
  • getFunction - Alias passthrough to lib.func.get.
  • stripComments - Alias passthrough to lib.str.stripComments.
  • lc - Alias passthrough to lib.str.lc.

Related