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

is-extended

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-extended - npm Package Compare versions

Comparing version 0.0.8 to 0.0.9

is-extended.iml

2

index.js

@@ -486,3 +486,3 @@ (function () {

}
} else if ("function" === typeof define) {
} else if ("function" === typeof define && define.amd) {
define(["extended"], function (extended) {

@@ -489,0 +489,0 @@ return defineIsa(extended);

@@ -1,3 +0,3 @@

/*! is-extended - v0.0.8 - 2013-04-16
/*! is-extended - v0.0.9 - 2013-06-05
* Copyright (c) 2013 Doug Martin; Licensed MIT */
(function(){"use strict";function n(n){function t(n,t){return t=t||0,P.call(n,t)}function e(n){var t=[];for(var e in n)z.call(n,e)&&t.push(e);return t}function r(n,t){if(n===t)return!0;if("undefined"!=typeof Buffer&&Buffer.isBuffer(n)&&Buffer.isBuffer(t)){if(n.length!==t.length)return!1;for(var e=0;n.length>e;e++)if(n[e]!==t[e])return!1;return!0}return g(n)&&g(t)?n.getTime()===t.getTime():p(n)&&p(t)?n.source===t.source&&n.global===t.global&&n.multiline===t.multiline&&n.lastIndex===t.lastIndex&&n.ignoreCase===t.ignoreCase:y(n)&&y(t)&&n!==t?!1:"object"!=typeof n&&"object"!=typeof t?n===t:i(n,t)}function i(n,t){var i;if(a(n)||a(t))return!1;if(n.prototype!==t.prototype)return!1;if(M(n))return M(t)?(n=P.call(n),t=P.call(t),r(n,t)):!1;try{var u,o=e(n),f=e(t);if(o.length!==f.length)return!1;for(o.sort(),f.sort(),u=o.length-1;u>=0;u--)if(o[u]!==f[u])return!1;for(u=o.length-1;u>=0;u--)if(i=o[u],!r(n[i],t[i]))return!1}catch(c){return!1}return!0}function u(n){return null!==n&&"object"==typeof n}function o(n){var t=u(n);return t&&n.constructor===Object&&!n.nodeType&&!n.setInterval}function f(n){return M(n)?0===n.length:u(n)?0===e(n).length:y(n)||Q(n)?0===n.length:!0}function c(n){return n===!0||n===!1||"[object Boolean]"===J.call(n)}function s(n){return n===void 0}function l(n){return!s(n)}function a(n){return s(n)||h(n)}function h(n){return null===n}function d(n,t){return K(t)?n instanceof t:!1}function p(n){return"[object RegExp]"===J.call(n)}function g(n){return"[object Date]"===J.call(n)}function y(n){return"[object String]"===J.call(n)}function b(n){return"[object Number]"===J.call(n)}function v(n){return n===!0}function m(n){return n===!1}function j(n){return!h(n)}function w(n,t){return n==t}function x(n,t){return n!=t}function _(n,t){return n===t}function A(n,t){return n!==t}function N(n,t){if(Q(t)&&Array.prototype.indexOf||y(t))return t.indexOf(n)>-1;if(Q(t))for(var e=0,r=t.length;r>e;e++)if(w(n,t[e]))return!0;return!1}function O(n,t){return!N(n,t)}function E(n,t){return t>n}function B(n,t){return t>=n}function q(n,t){return n>t}function L(n,t){return n>=t}function T(n,t){return y(t)?null!==(""+n).match(t):p(t)?t.test(n):!1}function I(n,t){return!T(n,t)}function S(n,t){return N(t,n)}function C(n,t){return!N(t,n)}function F(n,t,e){return Q(n)&&n.length>e?w(n[e],t):!1}function D(n,t,e){return Q(n)?!w(n[e],t):!1}function k(n,t){return z.call(n,t)}function G(n,t){return!k(n,t)}function H(n,t){return k(n,"length")?n.length===t:!1}function R(n,t){return k(n,"length")?n.length!==t:!1}function U(n){X[n]=function(){this._testers.push(V[n])}}function W(n){Y[n]=function(){var e,r=t(arguments,1),i=V[n],u=!0;if(r.length<=i.length-1)throw new TypeError("A handler must be defined when calling using switch");if(e=r.pop(),c(e)&&(u=e,e=r.pop()),!K(e))throw new TypeError("handler must be defined");this._cases.push(function(n){return i.apply(V,n.concat(r))?[u,e.apply(this,n)]:[!1]})}}var P=Array.prototype.slice,z=Object.prototype.hasOwnProperty,J=Object.prototype.toString,K=function(n){return"[object Function]"===J.call(n)};"undefined"==typeof window||K(window.alert)||function(n){K=function(t){return"[object Function]"===J.call(t)||t===n}}(window.alert);var M=function(n){return"[object Arguments]"===J.call(n)};M(arguments)||(M=function(n){return!(!n||!z.call(n,"callee"))});var Q=Array.isArray||function Q(n){return"[object Array]"===J.call(n)},V={isFunction:K,isObject:u,isEmpty:f,isHash:o,isNumber:b,isString:y,isDate:g,isArray:Q,isBoolean:c,isUndefined:s,isDefined:l,isUndefinedOrNull:a,isNull:h,isArguments:M,instanceOf:d,isRegExp:p,deepEqual:r,isTrue:v,isFalse:m,isNotNull:j,isEq:w,isNeq:x,isSeq:_,isSneq:A,isIn:N,isNotIn:O,isLt:E,isLte:B,isGt:q,isGte:L,isLike:T,isNotLike:I,contains:S,notContains:C,has:k,notHas:G,isLength:H,isNotLength:R,containsAt:F,notContainsAt:D},X={constructor:function(){this._testers=[]},noWrap:{tester:function(){var n=this._testers;return function(t){for(var e=!1,r=0,i=n.length;i>r&&!e;r++)e=n[r](t);return e}}}},Y={constructor:function(){this._cases=[],this.__default=null},def:function(n,t){this.__default=t},noWrap:{switcher:function(){var n=this._cases,e=this.__default;return function(){for(var r,i=!1,u=t(arguments),o=0,f=n.length;f>o&&!i;o++)if(r=n[o](u),r.length>1&&(r[1]||r[0]))return r[1];return!i&&e?e.apply(this,u):void 0}}}};for(var Z in V)z.call(V,Z)&&(W(Z),U(Z));var $=n.define(V).expose(V);return $.tester=n.define(X),$.switcher=n.define(Y),$}"undefined"!=typeof exports?"undefined"!=typeof module&&module.exports&&(module.exports=n(require("extended"))):"function"==typeof define?define(["extended"],function(t){return n(t)}):this.isExtended=n(this.extended)}).call(this);
(function(){"use strict";function n(n){function t(n,t){return t=t||0,P.call(n,t)}function e(n){var t=[];for(var e in n)z.call(n,e)&&t.push(e);return t}function r(n,t){if(n===t)return!0;if("undefined"!=typeof Buffer&&Buffer.isBuffer(n)&&Buffer.isBuffer(t)){if(n.length!==t.length)return!1;for(var e=0;n.length>e;e++)if(n[e]!==t[e])return!1;return!0}return g(n)&&g(t)?n.getTime()===t.getTime():p(n)&&p(t)?n.source===t.source&&n.global===t.global&&n.multiline===t.multiline&&n.lastIndex===t.lastIndex&&n.ignoreCase===t.ignoreCase:y(n)&&y(t)&&n!==t?!1:"object"!=typeof n&&"object"!=typeof t?n===t:i(n,t)}function i(n,t){var i;if(a(n)||a(t))return!1;if(n.prototype!==t.prototype)return!1;if(M(n))return M(t)?(n=P.call(n),t=P.call(t),r(n,t)):!1;try{var u,o=e(n),f=e(t);if(o.length!==f.length)return!1;for(o.sort(),f.sort(),u=o.length-1;u>=0;u--)if(o[u]!==f[u])return!1;for(u=o.length-1;u>=0;u--)if(i=o[u],!r(n[i],t[i]))return!1}catch(c){return!1}return!0}function u(n){return null!==n&&"object"==typeof n}function o(n){var t=u(n);return t&&n.constructor===Object&&!n.nodeType&&!n.setInterval}function f(n){return M(n)?0===n.length:u(n)?0===e(n).length:y(n)||Q(n)?0===n.length:!0}function c(n){return n===!0||n===!1||"[object Boolean]"===J.call(n)}function s(n){return n===void 0}function l(n){return!s(n)}function a(n){return s(n)||h(n)}function h(n){return null===n}function d(n,t){return K(t)?n instanceof t:!1}function p(n){return"[object RegExp]"===J.call(n)}function g(n){return"[object Date]"===J.call(n)}function y(n){return"[object String]"===J.call(n)}function b(n){return"[object Number]"===J.call(n)}function v(n){return n===!0}function m(n){return n===!1}function j(n){return!h(n)}function w(n,t){return n==t}function x(n,t){return n!=t}function _(n,t){return n===t}function A(n,t){return n!==t}function N(n,t){if(Q(t)&&Array.prototype.indexOf||y(t))return t.indexOf(n)>-1;if(Q(t))for(var e=0,r=t.length;r>e;e++)if(w(n,t[e]))return!0;return!1}function O(n,t){return!N(n,t)}function E(n,t){return t>n}function B(n,t){return t>=n}function q(n,t){return n>t}function L(n,t){return n>=t}function T(n,t){return y(t)?null!==(""+n).match(t):p(t)?t.test(n):!1}function I(n,t){return!T(n,t)}function S(n,t){return N(t,n)}function C(n,t){return!N(t,n)}function F(n,t,e){return Q(n)&&n.length>e?w(n[e],t):!1}function D(n,t,e){return Q(n)?!w(n[e],t):!1}function k(n,t){return z.call(n,t)}function G(n,t){return!k(n,t)}function H(n,t){return k(n,"length")?n.length===t:!1}function R(n,t){return k(n,"length")?n.length!==t:!1}function U(n){X[n]=function(){this._testers.push(V[n])}}function W(n){Y[n]=function(){var e,r=t(arguments,1),i=V[n],u=!0;if(r.length<=i.length-1)throw new TypeError("A handler must be defined when calling using switch");if(e=r.pop(),c(e)&&(u=e,e=r.pop()),!K(e))throw new TypeError("handler must be defined");this._cases.push(function(n){return i.apply(V,n.concat(r))?[u,e.apply(this,n)]:[!1]})}}var P=Array.prototype.slice,z=Object.prototype.hasOwnProperty,J=Object.prototype.toString,K=function(n){return"[object Function]"===J.call(n)};"undefined"==typeof window||K(window.alert)||function(n){K=function(t){return"[object Function]"===J.call(t)||t===n}}(window.alert);var M=function(n){return"[object Arguments]"===J.call(n)};M(arguments)||(M=function(n){return!(!n||!z.call(n,"callee"))});var Q=Array.isArray||function Q(n){return"[object Array]"===J.call(n)},V={isFunction:K,isObject:u,isEmpty:f,isHash:o,isNumber:b,isString:y,isDate:g,isArray:Q,isBoolean:c,isUndefined:s,isDefined:l,isUndefinedOrNull:a,isNull:h,isArguments:M,instanceOf:d,isRegExp:p,deepEqual:r,isTrue:v,isFalse:m,isNotNull:j,isEq:w,isNeq:x,isSeq:_,isSneq:A,isIn:N,isNotIn:O,isLt:E,isLte:B,isGt:q,isGte:L,isLike:T,isNotLike:I,contains:S,notContains:C,has:k,notHas:G,isLength:H,isNotLength:R,containsAt:F,notContainsAt:D},X={constructor:function(){this._testers=[]},noWrap:{tester:function(){var n=this._testers;return function(t){for(var e=!1,r=0,i=n.length;i>r&&!e;r++)e=n[r](t);return e}}}},Y={constructor:function(){this._cases=[],this.__default=null},def:function(n,t){this.__default=t},noWrap:{switcher:function(){var n=this._cases,e=this.__default;return function(){for(var r,i=!1,u=t(arguments),o=0,f=n.length;f>o&&!i;o++)if(r=n[o](u),r.length>1&&(r[1]||r[0]))return r[1];return!i&&e?e.apply(this,u):void 0}}}};for(var Z in V)z.call(V,Z)&&(W(Z),U(Z));var $=n.define(V).expose(V);return $.tester=n.define(X),$.switcher=n.define(Y),$}"undefined"!=typeof exports?"undefined"!=typeof module&&module.exports&&(module.exports=n(require("extended"))):"function"==typeof define&&define.amd?define(["extended"],function(t){return n(t)}):this.isExtended=n(this.extended)}).call(this);
{
"name": "is-extended",
"version": "0.0.8",
"version": "0.0.9",
"description": "Module for type detection",

@@ -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