|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
407 bytes
|
| Line | |
|---|
| 1 | define(['./_isArrayLike', './values', './indexOf'], function (_isArrayLike, values, indexOf) {
|
|---|
| 2 |
|
|---|
| 3 | // Determine if the array or object contains a given item (using `===`).
|
|---|
| 4 | function contains(obj, item, fromIndex, guard) {
|
|---|
| 5 | if (!_isArrayLike(obj)) obj = values(obj);
|
|---|
| 6 | if (typeof fromIndex != 'number' || guard) fromIndex = 0;
|
|---|
| 7 | return indexOf(obj, item, fromIndex) >= 0;
|
|---|
| 8 | }
|
|---|
| 9 |
|
|---|
| 10 | return contains;
|
|---|
| 11 |
|
|---|
| 12 | });
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.