Utils Helpers

Table of Contents

Utils

The following utils are exposed on .utils.

Visit the: code

{{changecase}}

Change casing on the given string, optionally passing a delimiter to use between words in the returned string.

Params

  • string {String}: The string to change.
  • returns {String}

Example

utils.changecase('fooBarBaz');
    //=> 'foo bar baz'
    
    utils.changecase('fooBarBaz' '-');
    //=> 'foo-bar-baz'
    

{{random}}

Generate a random number

Params

  • min {Number}
  • max {Number}
  • returns {Number}

Table of Contents