|
Last change
on this file since ba17441 was a762898, checked in by istevanoska <ilinastevanoska@…>, 5 months ago |
|
Added visualizations
|
-
Property mode
set to
100644
|
|
File size:
775 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 |
|
|---|
| 3 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|---|
| 4 |
|
|---|
| 5 | const isIndex = require('./isIndex.js');
|
|---|
| 6 | const isArrayLike = require('../predicate/isArrayLike.js');
|
|---|
| 7 | const isObject = require('../predicate/isObject.js');
|
|---|
| 8 | const isEqualsSameValueZero = require('../../_internal/isEqualsSameValueZero.js');
|
|---|
| 9 |
|
|---|
| 10 | function isIterateeCall(value, index, object) {
|
|---|
| 11 | if (!isObject.isObject(object)) {
|
|---|
| 12 | return false;
|
|---|
| 13 | }
|
|---|
| 14 | if ((typeof index === 'number' && isArrayLike.isArrayLike(object) && isIndex.isIndex(index) && index < object.length) ||
|
|---|
| 15 | (typeof index === 'string' && index in object)) {
|
|---|
| 16 | return isEqualsSameValueZero.isEqualsSameValueZero(object[index], value);
|
|---|
| 17 | }
|
|---|
| 18 | return false;
|
|---|
| 19 | }
|
|---|
| 20 |
|
|---|
| 21 | exports.isIterateeCall = isIterateeCall;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.