Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

iskindof

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

iskindof - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

16

index.js

@@ -9,4 +9,4 @@ /*

const toString = Object.prototype.toString
const kinds = [
var toString = Object.prototype.toString
var kinds = [
'String',

@@ -23,12 +23,12 @@ 'Boolean',

let kindof = module.exports = {}
var kindof = module.exports = {}
let f = (t) => { }
kinds.forEach(k => {
kindof[`is${k}`] = (i) => toString.call(i) === `[object ${k}]`
kinds.forEach(function (k) {
kindof['is' + k] = function (i) {
return toString.call(i) === '[object ' + k + ']'
}
})
kindof.isNumber = (i) => {
kindof.isNumber = function (i) {
return isNaN(i) ? false : toString.call(i) === '[object Number]'
}
{
"name": "iskindof",
"version": "0.0.1",
"version": "0.0.2",
"description": "iskindof type in JavaScript",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc