main
Last change
on this file since 65b6638 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
271 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | import eachOperation from './each-operation.js';
|
---|
| 2 |
|
---|
| 3 | // Will stop iterating over the operations and return the operationObj
|
---|
| 4 | // as soon as predicate returns true
|
---|
| 5 | export default function findOperation(spec, predicate) {
|
---|
| 6 | return eachOperation(spec, predicate, true) || null;
|
---|
| 7 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.