main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
474 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault").default;
|
---|
| 4 | exports.__esModule = true;
|
---|
| 5 | exports.default = findOperation;
|
---|
| 6 | var _eachOperation = _interopRequireDefault(require("./each-operation.js"));
|
---|
| 7 | // Will stop iterating over the operations and return the operationObj
|
---|
| 8 | // as soon as predicate returns true
|
---|
| 9 | function findOperation(spec, predicate) {
|
---|
| 10 | return (0, _eachOperation.default)(spec, predicate, true) || null;
|
---|
| 11 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.