2016-01-17から1日間の記事一覧
src/util.js /** * Deep clone an object. Faster than JSON.parse(JSON.stringify()). * * @param {*} obj * @return {*} */ export function deepClone (obj) { if (Array.isArray(obj)) { return obj.map(deepClone) } else if (obj && typeof obj === 'o…