Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yumetodo/object-type-traits
type traits for js object
https://github.com/yumetodo/object-type-traits
Last synced: about 20 hours ago
JSON representation
type traits for js object
- Host: GitHub
- URL: https://github.com/yumetodo/object-type-traits
- Owner: yumetodo
- License: mit
- Created: 2018-04-07T11:02:59.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-18T20:44:10.000Z (over 1 year ago)
- Last Synced: 2025-01-21T00:51:44.895Z (4 days ago)
- Language: JavaScript
- Size: 793 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# object-type-traits
[![Build Status](https://travis-ci.org/yumetodo/object-type-traits.svg?branch=master)](https://travis-ci.org/yumetodo/object-type-traits)
[![Known Vulnerabilities](https://snyk.io/test/github/yumetodo/object-type-traits/badge.svg?targetFile=package.json)](https://snyk.io/test/github/yumetodo/object-type-traits?targetFile=package.json)
![license MIT](https://img.shields.io/badge/license-MIT-blue.svg)A simple type checker like deprecated `jQuery.type`.
## Usage
```js
const type = require('object-type-traits');console.log(type.of(32)); // => Number
console.log(type.isSame('String', 'foooo')); // => true
```