Methods

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

Compare two arrays of strings.

Parameters:
NameTypeDescription
arr1Array

Array one.

arr2Array

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.

Parameters:
NameTypeDescription
lenNumber

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.

Parameters:
NameTypeDescription
ObjectObject

to check.

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

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

Return Pascal Case formatted string.

Parameters:
NameTypeDescription
valueChanged(newValue)String

{ String value to convert.

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