Jump to Content
nativescript-enumerableDiscussions
API ReferenceDiscussions
v3.5.1

Discussionsnativescript-enumerable
API Reference
v3.5.1API ReferenceDiscussions

Documentation

  • Getting Started
  • Functions and lambdas
  • What are "sequences"?

Functions

  • asFunc
  • asEnumerable
  • create
  • each
  • fromArray
  • fromObject
  • range
  • repeat
  • sort
  • sortDesc
  • toComparerSafe
  • toEqualityComparerSafe
  • toPredicateSafe

Methods

  • aggregate
  • all
  • any
  • average
  • cast
  • concat
  • contains
  • count
  • defaultIfEmpty
  • distinct
  • each
  • elementAt
  • elementAtOrDefault
  • except
  • first
  • firstOrDefault
  • groupBy
  • groupJoin
  • intersect
  • join
  • last
  • lastOrDefault
  • max
  • min
  • ofType
  • order
  • orderBy
  • orderByDescending
  • orderDescending
  • pushToArray
  • reverse
  • select
  • selectMany
  • sequenceEqual
  • single
  • singleOrDefault
  • skip
  • skipLast
  • skipWhile
  • sum
  • take
  • takeWhile
  • toArray
  • then
  • thenBy
  • thenByDescending
  • thenDescending
  • toObject
  • toObservable
  • toObservableArray
  • toLookup
  • union
  • where
  • zip
Powered by 

except

Returns the items of a sequence except a list of specific ones.

// 2.0, 2.1, 2.3, 2.5
Enumerable.create(2.0, 2.1, 2.2, 2.3, 2.4, 2.5)
          .except([2.2, 2.4]);

With equality comparer

// 2.0, '2.2', 2.1, 2.3, 2.5
Enumerable.create(2.0, 2.1, '2.2', 2.3, 2.4, 2.5)
          .except([2.2, 2.4],
                  'x, y => x === y');