Skip to content

Commit

Permalink
Revert "Workaround issue with hasOwnProperty"
Browse files Browse the repository at this point in the history
This reverts commit 8718afe.
  • Loading branch information
OliverJAsh committed Apr 15, 2021
1 parent 8718afe commit f23b699
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,8 @@ export const isLeft = <E, A>(ma: Either<E, A>): ma is Left<E> => ma._tag === 'Le
// Record
// -------------------------------------------------------------------------------------

const _hasOwnProperty = Object.prototype.hasOwnProperty

/**
* This wrapper is needed to workaround https://github.com/gcanti/fp-ts/issues/1249.
*
* @internal
*/
export function hasOwnProperty(this: any, k: string, r?: object) {
/* istanbul ignore next */
return _hasOwnProperty.call(r === undefined ? this : r, k)
}
/** @internal */
export const hasOwnProperty = Object.prototype.hasOwnProperty

// -------------------------------------------------------------------------------------
// NonEmptyArray
Expand Down

0 comments on commit f23b699

Please sign in to comment.