| import isArrayLike from './_isArrayLike.js'; | |
| import values from './values.js'; | |
| import indexOf from './indexOf.js'; | |
| // Determine if the array or object contains a given item (using `===`). | |
| export default function contains(obj, item, fromIndex, guard) { | |
| if (!isArrayLike(obj)) obj = values(obj); | |
| if (typeof fromIndex != 'number' || guard) fromIndex = 0; | |
| return indexOf(obj, item, fromIndex) >= 0; | |
| } | |
Xet Storage Details
- Size:
- 404 Bytes
- Xet hash:
- ba52e37babd621f465197bbea03267999a6737231d9cfbc044145199508f46a7
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.