Description

Properties

browser

`(>= 1.2.8)` Retrieves the methods and properties related to browser. It contains flags for each of the four most prevalent browser classes (Internet Explorer, Mozilla, Webkit, and Opera) as well as version information.

Methods

uniqid

Generating a unique identifier by date

arraySplice

Removes an element in an array by value

parseJSON

Takes a well-formed JSON string and returns the resulting JavaScript object.

each

The array is read and sent to a callback function

inArray

The CE.inArray() method is similar to JavaScript's native .indexOf() method in that it returns -1 when it doesn't find a match. If the first element within the array matches value, CE.inArray() returns 0. Because JavaScript treats 0 as loosely equal to false (i.e. 0 == false, but 0 !== false), if we're checking for the presence of value within array, we need to check if it's not equal to (or greater than) -1.

hexaToRGB

Converts the hexadecimal value of a color in RGB. Returns an array with 3 colors : [r, g, b]

rgbToHex

Converts the RGB value of a color in Hexadecimal.

random

Random value between `min` and `max`

mobileUserAgent

Returns the name of the user agent used

extend

`(>= 1.2.7)` Merging two objects

moveArray

Move one index to another location of an array

toTimer

`(>= 1.3.0)` Converts seconds into a format {hour: "", min: "", sec: ""}

toMatrix

`(>= 1.3.0)` Transforms a one-dimensional array to a table with two Diemension

rotateMatrix

`(>= 1.3.0)` Change the positions of the array elements, the rotation matrix

Discussion