Module: helpers/sl/utils/utils

Methods

(inner) convertObjectKeysToArray(underTest) → {Array}

Returns an array containing all of the property names of an object

Property names are only extracted from the object provided. No recursion into nested objects occurs.

Parameters:
Name Type Description
underTest Object
Source:
Throws:

If argument is not provided or is not an object

Type
ember.assert
Returns:
Type
Array

(inner) convertStringToArray(underTest) → {Array}

Splits a string into an array of individual "words" as delineated by spaces

Primarily exists to convert format of call to .prop( 'class' )

Parameters:
Name Type Description
underTest String
Source:
Throws:

If argument is not provided or is not a string

Type
ember.assert
Returns:
Type
Array

(inner) convertToArray(underTest) → {Array}

Converts provided parameter into an array

Parameters:
Name Type Description
underTest Array | String | Object
Source:
Throws:

If not provided an Array, String or Object

Type
ember.assert
Returns:
Type
Array

(inner) doArraysIntersect(underTest, testFor) → {Boolean}

Whether at least one element of the array exists in the other

Parameters:
Name Type Description
underTest Array
testFor Array
Source:
Returns:
Type
Boolean