UNPKG

lenye_base

Version:

基础方法

11 lines (8 loc) 198 B
'use strict'; /** * Returns true if the element has the specified Array, false otherwise. */ function contains(target, item) { return target.indexOf(item) > -1; } module.exports = contains;