Enumerable#without()

without (value) Ember.Enumerablepublic

Defined in packages/ember-runtime/lib/mixins/enumerable.js:790

Returns a new enumerable that excludes the passed value. The default implementation returns an array regardless of the receiver type. If the receiver does not contain the value it returns the original enumerable.

let arr = ['a', 'b', 'a', 'c'];
arr.without('a');  // ['b', 'c']

Parameters:

value Object

Returns:

Ember.Enumerable
doc_EmberJs
2016-11-30 16:52:03
Comments
Leave a Comment

Please login to continue.