Skip to content

Commit

Permalink
👕 refactor(util): unncessary each util
Browse files Browse the repository at this point in the history
  • Loading branch information
kazupon committed Aug 12, 2016
1 parent ca7b34d commit 81d7359
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,30 +61,6 @@ export function empty (target) {
return true
}

/**
* each
*
* @param {Array|Object} target
* @param {Function} iterator
* @param {Object} [context]
*/

export function each (target, iterator, context) {
if (Array.isArray(target)) {
for (let i = 0; i < target.length; i++) {
iterator.call(context || target[i], target[i], i)
}
} else if (exports.Vue.util.isPlainObject(target)) {
/* eslint-disable prefer-const */
for (let key in target) {
if (hasOwn(target, key)) {
iterator.call(context || target[key], target[key], key)
}
}
/* eslint-enable prefer-const */
}
}

let Watcher
/**
* getWatcher
Expand Down

0 comments on commit 81d7359

Please sign in to comment.