From a4ca39bfef04d1b141c3b7955c27ed1fbe7cb26d Mon Sep 17 00:00:00 2001 From: pimlie Date: Mon, 11 Feb 2019 11:58:16 +0100 Subject: [PATCH] chore: fix lint --- src/shared/typeof.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/shared/typeof.js b/src/shared/typeof.js index 952db37..6d796fc 100644 --- a/src/shared/typeof.js +++ b/src/shared/typeof.js @@ -1,20 +1,16 @@ -export function isType(arg, type) { - return typeof arg === type -} - export function isUndefined(arg) { - return isType(arg, 'undefined') + return typeof arg === 'undefined' } export function isObject(arg) { - return isType(arg, 'object') + return typeof arg === 'object' } export function isFunction(arg) { - return isType(arg, 'function') + return typeof arg === 'function' } export function isString(arg) { - return isType(arg, 'string') + return typeof arg === 'string' }