Skip to content

Commit

Permalink
Remove unused private method: isReactNative (#585)
Browse files Browse the repository at this point in the history
The method is introduced by
#53, and got unused by
https://github.com/jaredpalmer/formik/pull/521/files.
  • Loading branch information
Masato Ohba authored and jaredpalmer committed Apr 16, 2018
1 parent faabe08 commit ecda967
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/utils.ts
Expand Up @@ -81,13 +81,6 @@ export function setNestedObjectValues<T>(

// Assertions

/** @private is running React Native? */
export const isReactNative =
typeof window !== 'undefined' &&
window.navigator &&
window.navigator.product &&
window.navigator.product === 'ReactNative';

/** @private is the given object a Function? */
export const isFunction = (obj: any) => 'function' === typeof obj;

Expand Down

0 comments on commit ecda967

Please sign in to comment.