• ng.array is not available in the Lite version

Array ng.array (Mixed obj, [String separator = , (comma)]) vs. 1.1.0 FULL ONLY

Create an array from an array like object (arguments, collection or a string).

As of version 1.2.2, this function will return an array with the parameter obj as the only element when it cannot parse an array. For example, calling ng.array(5) will return [5].

Parameters

Mixed obj Required vs. 1.1.0 Full+Lite
The object which will be used to create the array. Can be Arguments, Collection or String.
String separator (Optional - Default: , (comma)) vs. 1.1.0 Full+Lite
If the obj is a string, the separator is a charactor used to split the string. Defaults to , (comma)

Return

Array Required vs. 1.1.0 Full+Lite
The array that was generated from the object.

Examples

Using ng.array(obj, separator)
Demo: