/** * 遍历指定对象 * * 与 `jQuery.each()` 效果类似 * * 详见:http://api.jquery.com/jQuery.each/ * * @param {*} target 目标 * @param {*} callback 应用到每个元素的处理函数 */ declare function eachItem(target: any, callback: Function): void; /** * 扩展指定对象 * * 与 `jQuery.extend()` 效果一样 * * 详见:http://api.jquery.com/jQuery.extend/ */ declare function extendTarget(...args: any[]): object; /** * 将目标转化为数组 * * @param {*} target 目标 */ declare function toArray(target: any): any[]; /** * 判断目标是否在集合中 * * @param {*} target 目标 * @param {*} collection 集合 */ export declare function includes(target: any, collection: any): boolean; /** * 对集合中的每个元素进行处理并返回一个新的集合 * * @param {*} target 目标 * @param {*} callback 应用到每个元素的处理函数 */ export declare function map(target: any, callback: any): any[]; /** * 对集合中的每个元素进行过滤并返回一个新的集合 * * @param {*} target 目标 * @param {*} callback 应用到每个元素的处理函数 */ export declare function filter(arr: any, callback: Function): any[]; /** * 获取集合中的最后一个元素 * * @param {*} target 目标 */ export declare function last(target: any): any; /** * 获取指定对象的所有键 * * @param {*} target 目标 */ export declare function keys(target: any): string[]; /** * 克隆目标 * * @param {*} target 被克隆的对象 */ export declare function clone(target: any): any; export { eachItem as each, extendTarget as mixin, toArray as arrayify };