Remove @advdominion/is
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
# is
|
||||
|
||||
Check variable type
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import { is } from '@advdominion/is';
|
||||
|
||||
console.log(is('Hello, world!', 'String'));
|
||||
```
|
||||
@@ -1,3 +0,0 @@
|
||||
export const is = (obj, type) => {
|
||||
return Object.prototype.toString.call(obj).slice(8, -1) === type && obj !== undefined && obj !== null;
|
||||
};
|
||||
@@ -1,14 +0,0 @@
|
||||
{
|
||||
"name": "@advdominion/is",
|
||||
"version": "1.0.2",
|
||||
"type": "module",
|
||||
"main": "index.js",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://gitea.optiweb.ru/public/frontend.git"
|
||||
},
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user