linq.AsArray

Returns the contents of an object having a length property as an array with the Linquid JS extensions applied

Overloads

  • Array linq.AsArray (object)

Array linq.AsArray (object)

Returns the contents of object (if it has a length property) as an array with the Linquid JS extensions applied

Example

var myObj = {length: 3, "0": "Hi There", "1":"You", "2":"Reader of Documentation"};

//Returns ["Hi There", "You", "Reader of Documentation"];
linq.AsArray(myObj);

Last edited Sep 24, 2011 at 9:47 AM by mlorbetske, version 2

Comments

No comments yet.