Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

es.array.find-last.js 527B

1234567891011121314
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var $findLast = require('../internals/array-iteration-from-last').findLast;
  4. var addToUnscopables = require('../internals/add-to-unscopables');
  5. // `Array.prototype.findLast` method
  6. // https://tc39.es/ecma262/#sec-array.prototype.findlast
  7. $({ target: 'Array', proto: true }, {
  8. findLast: function findLast(callbackfn /* , that = undefined */) {
  9. return $findLast(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  10. }
  11. });
  12. addToUnscopables('findLast');