You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yasser Moradi edited this page Aug 26, 2015
·
2 revisions
Description:
This method returns the first item from sequence. We can use this method without passing any argument.
Sample:
letitems=['One','Two','Three','Four','Five','Six','Seven','Eight','Nine','Ten'];letfirst=items.asEnumerable().first();console.log('*** return first element of the array');console.log(first);
Description:
If there are no items in the in the sequence the method throws an exception.