Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.01 KB

JSHELPERS.md

File metadata and controls

32 lines (24 loc) · 1.01 KB

Wuse

Javascript Helpers Documentation

Following, the documentation on the Wuse Javascript Helpers Module API.

Javascript Helpers API

Constants Read-Only Properties

  • EMPTY_STRING, an empty string to compare against with
  • EMPTY_ARRAY, an empty array to compare against with

Common Routines

  • noop, dummy function
  • isNonEmptyString, string emptyness checker
  • forcedStringSplit, forced string splitter
  • buildArray, convenience array builder
  • buildObject, convenience object builder
  • ensureFunction, returns always a function
  • isOf, type checker function for a single argument
  • areOf, type checker function for multiple arguments
  • cloneObject, object cloner
  • forEachOwnProperty, properties iterator
  • hasObjectKeys, object keys checker
  • isAssignedObject, object assignation checker
  • isAssignedArray, array assignation checker
  • isNonEmptyArray, array emptyness checker
  • isIntegerNumber, integer number checker
  • defineReadOnlyMembers, read-only members definer