Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 527 Bytes

pluck.md

File metadata and controls

25 lines (18 loc) · 527 Bytes

Plucks a property from the object.

Arguments

  1. property (String): The property name to pluck from the object.

Returns

(Boolean): true if equal; else false.

Example

var pluck = Rx.helpers.pluck;

var source = Rx.Observable.interval(1000)
  .timeInterval()
  .map(pluck('value'))
  .take(3);

source.subscribe(console.log.bind(console));
// => 0
// => 1
// => 2