Something went wrong. Try again.
☢ Make Your React App Truly Reactive!
Something went wrong. Try again.
281 B · 12 lines
JavaScript
at master
123456789101112const isObject = require('./isObject')
const unReactify = (state) => { if (!isObject(state)) return state const target = Array.isArray(state) ? [] : {} Object.keys(state).forEach(k => { target[k] = unReactify(state[k]) }) return target}
module.exports = unReactify