* Return `true` if the `needle` is in the array * * @param {*} needle * @param {Array} array * @returns {boolean}
(needle, array)
| 222 | * @returns {boolean} |
| 223 | */ |
| 224 | static isInArray(needle, array) { |
| 225 | if (!this.isArray(array) || this.isUndefined(needle)) { |
| 226 | return false; |
| 227 | } |
| 228 | |
| 229 | return array.indexOf(needle) !== -1; |
| 230 | } |
| 231 | |
| 232 | /** |
| 233 | * Return `true` if the parameter is an Array |
no test coverage detected