Convert object fjs.toArray

fjs.toArray

fjs.toArray converts an object with properties to an array.

Usage

fjs.toArray(obj);

Example

var obj = {
"p1": "abc",
"p2": false,
"p3": null
};
fjs.toArray(obj);
// => [["p1", "abc"], ["p2", false], ["p3", null]]