Sha256: 6cb050578765e6a60a55dd28dc77667f639305700a9c70ab1d1557f45c138ed0
Contents?: true
Size: 556 Bytes
Versions: 14
Compression:
Stored size: 556 Bytes
Contents
/** * Returns the maximum value in an observable sequence according to the specified comparer. * @example * var res = source.max(); * var res = source.max(function (x, y) { return x.value - y.value; }); * @param {Function} [comparer] Comparer used to compare elements. * @returns {Observable} An observable sequence containing a single element with the maximum element in the source sequence. */ observableProto.max = function (comparer) { return this.maxBy(identity, comparer).map(function (x) { return firstOnly(x); }); };
Version data entries
14 entries across 7 versions & 1 rubygems