isDraftable.js
This file
Path
__tests__/isDraftable.js
7 lines · 218 bytes · JavaScript
Last changed by
Not known.
History of this fileTake it
12345678"use strict"import {isDraftable} from "../src/immer"
test("non-plain object with undefined constructor doesn't error", () => { const obj = Object.create(Object.create(null)) expect(isDraftable(obj)).toBe(false)})