UNPKG

react-kiwi-dropdown

Version:

| Name | Type | Description | | --------------------------- | -------------------- | ----------- | | options | array | | selectedOption | string | | onCha

7 lines (6 loc) 153 B
module.exports = function (ary, item) { var i = -1, indexes = [] while((i = ary.indexOf(item, i + 1)) !== -1) indexes.push(i) return indexes }