Skip to content

Commit

Permalink
Chore: (refactor): removes unused functions
Browse files Browse the repository at this point in the history
  • Loading branch information
pustovitDmytro committed Apr 8, 2021
1 parent cfa3bce commit 24badd9
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/utils/typeUtils.js
@@ -1,24 +1,4 @@

export function isString(x) {
return x && Object.prototype.toString.call(x) === '[object String]';
}

export function isClass(v) {
return typeof v === 'function' && /^\s*class\s+/.test(v.toString());
}

export function isFunction(x) {
return x && Object.prototype.toString.call(x) === '[object Function]';
}

export function isEmpty(x) {
return x && x.constructor === Object && Object.keys(x).length === 0;
}

export function isObject(x) {
return x && Object.prototype.toString.call(x) === '[object Object]';
}

export function isArray(x) {
return x && Object.prototype.toString.call(x) === '[object Array]';
}

0 comments on commit 24badd9

Please sign in to comment.