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 systems.

11 lines (10 loc) 261 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) }) } }