diff --git a/src/partial.lenses.js b/src/partial.lenses.js index 670734c6..e687f5ef 100644 --- a/src/partial.lenses.js +++ b/src/partial.lenses.js @@ -249,7 +249,7 @@ const lensFrom = (get, set) => i => (x, _i, F, xi2yF) => // -const getProp = (k, o) => o instanceof Object ? o[k] : void 0 +const getProp = (k, o) => null != o ? o[k] : void 0 const setProp = /*#__PURE__*/(process.env.NODE_ENV === "production" ? I.id : C.res(I.freeze))((k, v, o) => void 0 !== v ? I.assocPartialU(k, v, o) : I.dissocPartialU(k, o) || I.object0) @@ -646,8 +646,7 @@ const pickInAux = (t, k) => [k, pickIn(t)] // Auxiliary export const seemsArrayLike = x => - x instanceof Object && (x = x.length, x === (x >> 0) && 0 <= x) || - I.isString(x) + null != x && (x = x.length, x === (x >> 0) && 0 <= x) // Internals