Skip to content

Commit

Permalink
struct: alias _.hasOwnProperty to _.has for evolve
Browse files Browse the repository at this point in the history
  • Loading branch information
imcotton authored and gcanti committed Jul 28, 2021
1 parent 60250b9 commit 508cd9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/struct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const evolve = <A, F extends { [K in keyof A]: (a: A[K]) => unknown }>(tr
): { [K in keyof F]: ReturnType<F[K]> } => {
const out: Record<string, unknown> = {}
for (const k in a) {
if (_.hasOwnProperty.call(a, k)) {
if (_.has.call(a, k)) {
out[k] = transformations[k](a[k])
}
}
Expand Down

0 comments on commit 508cd9a

Please sign in to comment.