linq.OfType

Gets the elements from the array that have a matching type name

Overloads

  • Array OfType (string)

Array OfType (string)

Gets the elements from the array that have a matching type name

Example

var myArray = [[], "Hi There", 5, "cheese"];
//Returns ["Hi There", "cheese"]
myArray.OfType("string");

Last edited Sep 24, 2011 at 5:03 AM by mlorbetske, version 1

Comments

No comments yet.