Utils

Source:

Methods

(static) compareArrays(arr1, arr2) → {Boolean}

Compare two arrays of strings.

Source:
Parameters:
Name Type Description
arr1 Array

Array one.

arr2 Array

Array two.

Returns:
Type:
Boolean
Example
const result = Utils.compareArrays(
  ['foo','bar','biz'],
  ['bar','qux','baz']
);
// false

(static) genRandomStr(len) → {String|undefined}

Generate a pseudo-random string.

Source:
Parameters:
Name Type Description
len Number

Character length (default: 32).

Returns:
Type:
String | undefined
Example
const result = Utils.genRandomStr(10);

(static) isObject(Object) → {Boolean}

Check if value is an Object instance.

Source:
Parameters:
Name Type Description
Object Object

to check.

Returns:
Type:
Boolean
Example
const result = Utils.isObject({foo: 'bar'});
// true

(static) pascalCase(valueChanged(newValue)) → {String}

Return Pascal Case formatted string.

Source:
Parameters:
Name Type Description
valueChanged(newValue) String

{ String value to convert.

Returns:
Type:
String
Example
const result = Utils.pascalCase('foo-bar_BizBaz);
// FooBarBizBaz