UNPKG

substance

Version:

Substance is a JavaScript library for web-based content editing. It provides building blocks for realizing custom text editors and web-based publishing system. It is developed to power our online editing platform [Substance](http://substance.io).

11 lines (10 loc) 263 B
export default function forEach (iteratee, func) { if (!iteratee) return if (iteratee.constructor.prototype.forEach) { iteratee.forEach(func) } else { Object.keys(iteratee).forEach(function (key) { return func(iteratee[key], key) }) } }