@blivesta/util-types

Just a small JavaScript utilities

Usage no npm install needed!

<script type="module">
  import blivestaUtilTypes from 'https://cdn.skypack.dev/@blivesta/util-types';
</script>

README

@blivesta/util-types

Install

yarn add @blivesta/util-types

Usage

import { isArr, isObj } from '@blivesta/util-types'

const arr = ['foo']
const obj = {
  foo: 'bar'
}

isArr(arr) // true
isArr(obj) // false

isObj(arr) // false
isObj(obj) // true

License

Released under the MIT license.