source: node_modules/swagger-client/es/helpers/find-operation.js

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: 271 bytes
RevLine 
[d24f17c]1import eachOperation from './each-operation.js';
2
3// Will stop iterating over the operations and return the operationObj
4// as soon as predicate returns true
5export default function findOperation(spec, predicate) {
6 return eachOperation(spec, predicate, true) || null;
7}
Note: See TracBrowser for help on using the repository browser.