UNPKG

wecui

Version:

一款基于Vue2.x版本的移动端web组件

23 lines (17 loc) 471 B
/*! * object.map <https://github.com/jonschlinkert/object.map> * * Copyright (c) 2014-2017, Jon Schlinkert. * Released under the MIT License. */ 'use strict'; var makeIterator = require('make-iterator'); var forOwn = require('for-own'); module.exports = function(obj, fn, thisArg) { var iterator = makeIterator(fn, thisArg); var result = {}; forOwn(obj, function(value, key, orig) { result[key] = iterator(value, key, orig); }); return result; };