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 (9 loc) 262 B
import { cloneDeepWith } from '../vendor/lodash-es' import platform from './platform' export default function cloneDeep (val) { return cloneDeepWith(val, value => { if (platform.inBrowser && value instanceof window.File) { return value } }) }