API Docs for: 1.0

Class util

Class defined in: src/js/util.js:14

static class with util functions

Boolean assert( expr, msg )
src/js/util.js:24

outputs an error if expr -- converted to boolean -- represents "false".

Parameters:
  • expr <Object>

    An expression that is evaluated as boolean

  • msg <Object>

    The error message to show if expr is evaluated as false


Returns: <Boolean> The expr evaluated as boolean