tdesign-mobile-vue
Version:
tdesign-mobile-vue
44 lines (39 loc) • 1.27 kB
JavaScript
/**
* tdesign v1.7.0
* (c) 2024 TDesign Group
* @license MIT
*/
import { _ as _typeof } from './dep-620d73f7.mjs';
import './dep-8bf3054e.mjs';
import { e as eq_1 } from './dep-4931819d.mjs';
import { i as isArrayLike_1 } from './dep-4f44985d.mjs';
import { _ as _isIndex } from './dep-933f3a85.mjs';
import { i as isObject_1 } from './dep-e6c129ab.mjs';
import './dep-91d696ea.mjs';
var eq = eq_1,
isArrayLike = isArrayLike_1,
isIndex = _isIndex,
isObject = isObject_1;
/**
* Checks if the given arguments are from an iteratee call.
*
* @private
* @param {*} value The potential iteratee value argument.
* @param {*} index The potential iteratee index or key argument.
* @param {*} object The potential iteratee object argument.
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
* else `false`.
*/
function isIterateeCall(value, index, object) {
if (!isObject(object)) {
return false;
}
var type = _typeof(index);
if (type == 'number' ? isArrayLike(object) && isIndex(index, object.length) : type == 'string' && index in object) {
return eq(object[index], value);
}
return false;
}
var _isIterateeCall = isIterateeCall;
export { _isIterateeCall as _ };
//# sourceMappingURL=dep-007f294e.mjs.map