UNPKG

@ozen-ui/kit

Version:

React component library

8 lines (7 loc) 208 B
export var getOptionIndex = function (options, id) { var index = options.findIndex(function (option) { return option.id === id; }); if (index === -1) { return null; } return index; };