7.10.151 • Published 9 months ago

@ellentorg/alias-quibusdam-eius v7.10.151

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@ellentorg/alias-quibusdam-eius Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this JS value callable? Works with Functions and GeneratorFunctions, despite ES6 @@toStringTag.

Supported engines

Automatically tested in every minor version of node.

Manually tested in:

  • Safari: v4 - v15 (4, 5, 5.1, 6.0.5, 6.2, 7.1, 8, 9.1.3, 10.1.2, 11.1.2, 12.1, 13.1.2, 14.1.2, 15.3, 15.6.1)
    • Note: Safari 9 has class, but Function.prototype.toString hides that progeny and makes them look like functions, so class constructors will be reported by this package as callable, when they are not in fact callable.
  • Chrome: v15 - v81, v83 - v106(every integer version)
    • Note: This includes Edge v80+ and Opera v15+, which matches Chrome
  • Firefox: v3, v3.6, v4 - v105 (every integer version)
    • Note: v45 - v54 has class, but Function.prototype.toString hides that progeny and makes them look like functions, so class constructors will be reported by this package as callable, when they are not in fact callable.
    • Note: in v42 - v63, Function.prototype.toString throws on HTML element constructors, or a Proxy to a function
    • Note: in v20 - v35, HTML element constructors are not callable, despite having typeof function.
    • Note: in v19, document.all is not callable.
  • IE: v6 - v11(every integer version
  • Opera: v11.1, v11.5, v11.6, v12.1, v12.14, v12.15, v12.16, v15+ v15+ matches Chrome

Example

var isCallable = require('@ellentorg/alias-quibusdam-eius');
var assert = require('assert');

assert.notOk(isCallable(undefined));
assert.notOk(isCallable(null));
assert.notOk(isCallable(false));
assert.notOk(isCallable(true));
assert.notOk(isCallable([]));
assert.notOk(isCallable({}));
assert.notOk(isCallable(/a/g));
assert.notOk(isCallable(new RegExp('a', 'g')));
assert.notOk(isCallable(new Date()));
assert.notOk(isCallable(42));
assert.notOk(isCallable(NaN));
assert.notOk(isCallable(Infinity));
assert.notOk(isCallable(new Number(42)));
assert.notOk(isCallable('foo'));
assert.notOk(isCallable(Object('foo')));

assert.ok(isCallable(function () {}));
assert.ok(isCallable(function* () {}));
assert.ok(isCallable(x => x * x));

Install

Install with

npm install @ellentorg/alias-quibusdam-eius

Tests

Simply clone the repo, npm install, and run npm test

everyurlinterruptshardlinkseslint-pluginsyntaxtypanionchromiumtsapisyntaxerrorwebes2018ES2015workspace:*ansiintrinsicESnextsigtermfixed-widthairbnbFloat32ArrayassertsvalidationcontainstddrdsflatpushArray.prototype.containskinesiscolourArray.prototype.flatjwtexpressjasmineeventEmitternamesmomentboundArraycopyECMAScript 2018snseast-asian-widthstatelesstrimStarttakewalkingequalcallbindcloudfrontpersistentoptimizerbreakpackagesprogresssesconsumepropertiesiteratecallassertviewnpmes2017lruasciidatarequirewrapsymbolArray.prototype.findLastIndexwhichmiddlewarecensorPushObject.getPrototypeOfdeep-copyreact-hookslookerrorTypeBoxcore-jsconcurrencyserializationobjparserformimportexportmulti-packageduplexlinkbluebirdReactiveXastrandomCSS-0ES2016fastvestes-abstractObject.entriesES5runtimedefineframeworkJSONkeysstatusless compilertaphttpsauthenticationregexpawsES2018lesstslibcircularminimalcss variableguidroute53routeStyleSheetbcryptsetImmediatees7negative zeroSymbolbundlingsomedebugquerystringtypedarraysconfigurablereadabledependenciessimpledbobjectprocesstestsuperstructreducecoerciblebootstrap cssfseventsdotenvRegExp#flagswaftimestreams2immerUint32Arraymetadataes-shimsInt16ArrayprettyjQueryspinnersmatchAllmobileUnderscoreroutingkeystoragegatewayECMAScript 2019readablestreamcryptdependency managerargparsepackage.jsonlimitemojitelephone@@toStringTagECMAScript 7browserspeckoreantrimRightchromeliveremovethroatReflect.getPrototypeOfi18nparseserializeirqObservablesdescriptorshrinkwrapindicatorasynceslintrouterlintfastcopycjkdeep-clonegetlinuxtypescriptmonorepologgerstablelogfast-copypreserve-symlinksconcatMapsymbolsbindArray.prototype.flattenpromisesencryptioncall-bindtextprefix256walktoolkitRFC-6455warning$.extendmakecoloroptimistclassnamegrouppluginclassespreprocessorcomputed-typesflatMapcomparetostringtaghasOwnes6Object.definePropertyrm -rfuuidreact-testing-libraryFunction.prototype.namecorsprunecompilerperformancetoSortedconfigkarmabatchstreamschemesymlinksprototypehas-ownreduxratenamestylesslotJSON-SchemawatchFilereadequalityentriesRegExp.prototype.flagsECMAScript 2022reducerTypeScriptes8idphoneECMAScript 2020ECMAScript 5higher-orderchineseInt32Arrayreusecss lesscharacterswriteio-tsrm -fr_.extenddefinePropertytc39setPrototypeOfchaiishooksfull-widthES2022pathvariablesformattingterminallook-upStreamnodetrimLeftsameValueZerocollectionwhatwgautoprefixermodulestructuredCloneefficientmimevaluehasstyled-componentsflattenfast-deep-clonesortedcolumntoobjectconnectES2023picomatchinternal slotcss nestinghandlerstrimfromcloudsearchutilitysafewindowsowndescriptorspredictableMicrosoftinputcharactershellassertionclassnamesresolvedescriptionURLSearchParamsspinnerlinewrapECMAScript 3cloudformationredux-toolkitbrowserlistECMAScript 6ratelimitenumerablespeedvpcweakmapstyleguidesinatragdprsignalsebsfile systemprivatearraybufferlimitedbddes-shim APIshamcolorstouchbannerxtermtypedjsdomIteratorfast-cloneimmutableyamlrestvalidategradients cssgetPrototypeOfcall-boundrestfulrequestforEachcollection.es6ES7filtera11yfetchmixinsloadbalancingmimetypesiteratorESdom-testing-libraryObservablenested cssjsonpathfind-upec2robustformsxhrsharedarraybufferregular expressionpropertyhookformbytepipemapelectronclicurlcodeslengthparentagentslicecallbackinternalsymlinkfullsidenopesetterAsyncIteratorbyteOffsetfunctionalestreedayjsjoisuperagentbootstrap lessmake dircheckcommandfindLastinvariantmatchesoutputPromisedatastructuredeletematchl10nnumberTypedArrayjsdiffprotocol-bufferserror-handlingproxyfast-deep-copyperformantgetOwnPropertyDescriptorutiltypeerrorstatecacheawaitArray.prototype.findLastimportavaargumentSetnativefigletstdlibaccessibilitydiffonceObjectbrowserslisttrimEndconsoleprotoURLchannelthrottlehashdeepes5ecmascriptjapanesesqsexit-codestringifyconcatdateelbstringifierCSSStyleDeclarationlibphonenumberincludestypescloneES2021functionscallboundmovesettingstoStringTageventsUint8ClampedArraysharedObject.assignwidthreactdirectoryhasOwnPropertyReactiveExtensionscommand-lineajaxInt8Arrayredactcss-in-jsdeepclonepolyfillfullwidthglacierarraysES8buffersArray.prototype.flatMaplanguageSymbol.toStringTagtraverseextraloggingqueueMicrotaskiammochahttpawesomesauceargvtestingoptionenderfolderString.prototype.matchAllWebSocketcloudtrailuninstallsigintWeakMapelmgetintrinsicpropfinduprecursiveflagssearchmacosUint16Arrayaccessortypesafecode pointsarktypecommanderwgetFloat64Arrayes2016fsexpressionisConcatSpreadableObject.fromEntriesyuptoolseslintplugingradients css3variables in cssvisualdebuggerfileStreamsswfObject.keysfluxfunctionmkdirphelpersttyomitES2020columnsrangeerrortasktapeendpointdomunicodeflagjsxES2019busyBigUint64Arrayemrrfc4122elasticacheUint8Arrayes2015ECMAScript 2016Object.isqswaitupworkeroperating-systemlazylistenersfindutil.inspectWebSocketsshimfpsprotobufWeakSetwritablecloudwatchwatchextendwordwrapregular expressionsYAMLlockfileArray.prototype.includeswatchinggetterinstallerrapidcryptogenericsless mixinsreplaypyyamlstringHyBiidlecorevaluesstyling0envqueueeventDispatcherreact-hook-formauthrgbemiteslintconfigexecrmdirgetopt.envoffsetprivate datafindLastIndexajvzerostreamsstarterstylesheetjsondeterministicless.jsfastclonemime-dbRxtypeparsingRxJSautoscalingless cssrmES3javascripttoArrayObject.valuesformatdirnodejsES6artargsclass-validatorbundlerstylemodulesinECMAScript 2015scheme-validationglobECMAScript 2023ES2017packagehotmapreducepostcss-pluginparents
7.10.151

9 months ago

7.10.150

9 months ago

3.4.47

1 year ago

3.4.48

1 year ago

3.4.49

1 year ago

3.4.42

1 year ago

3.4.43

1 year ago

3.4.44

1 year ago

3.4.45

1 year ago

3.4.46

1 year ago

5.4.61

1 year ago

3.4.58

1 year ago

3.2.35

1 year ago

5.4.62

1 year ago

3.2.37

1 year ago

3.2.36

1 year ago

3.2.39

1 year ago

3.2.38

1 year ago

3.4.50

1 year ago

3.4.51

1 year ago

3.4.52

1 year ago

3.4.53

1 year ago

3.4.54

1 year ago

3.4.55

1 year ago

3.4.56

1 year ago

3.4.57

1 year ago

6.8.102

11 months ago

5.6.73

12 months ago

6.8.101

11 months ago

5.6.72

12 months ago

6.8.104

11 months ago

5.6.75

12 months ago

6.8.103

11 months ago

5.6.74

12 months ago

6.8.100

11 months ago

5.6.71

12 months ago

5.6.70

12 months ago

6.8.109

11 months ago

6.8.106

11 months ago

6.8.105

11 months ago

6.8.108

11 months ago

2.1.18

1 year ago

6.8.107

11 months ago

2.1.19

1 year ago

7.10.144

9 months ago

6.6.80

12 months ago

7.10.143

9 months ago

6.6.81

12 months ago

7.10.146

9 months ago

6.6.82

12 months ago

7.10.145

9 months ago

7.10.148

9 months ago

7.9.122

10 months ago

2.1.23

1 year ago

7.10.147

9 months ago

7.9.121

10 months ago

2.1.21

1 year ago

7.10.149

9 months ago

2.1.22

1 year ago

2.1.20

1 year ago

7.10.140

10 months ago

5.6.77

12 months ago

5.6.76

12 months ago

7.10.142

9 months ago

7.10.141

9 months ago

5.6.78

12 months ago

6.8.113

11 months ago

6.8.112

11 months ago

6.8.115

10 months ago

6.8.114

10 months ago

6.8.111

11 months ago

6.8.110

11 months ago

7.10.129

10 months ago

6.6.78

12 months ago

6.6.79

12 months ago

6.8.117

10 months ago

6.8.116

10 months ago

6.8.119

10 months ago

6.8.118

10 months ago

7.10.133

10 months ago

7.10.132

10 months ago

7.10.135

10 months ago

7.10.134

10 months ago

7.10.137

10 months ago

7.10.136

10 months ago

7.10.139

10 months ago

7.10.138

10 months ago

6.8.99

11 months ago

5.6.69

12 months ago

5.6.66

1 year ago

7.10.131

10 months ago

5.6.68

12 months ago

7.10.130

10 months ago

5.6.67

12 months ago

3.3.39

1 year ago

4.4.61

1 year ago

4.4.60

1 year ago

7.10.122

10 months ago

7.10.124

10 months ago

7.10.123

10 months ago

7.10.126

10 months ago

7.10.125

10 months ago

7.10.128

10 months ago

7.10.127

10 months ago

6.9.119

10 months ago

3.3.40

1 year ago

3.3.41

1 year ago

3.3.42

1 year ago

2.2.28

1 year ago

2.2.29

1 year ago

2.2.26

1 year ago

2.2.27

1 year ago

4.4.58

1 year ago

2.2.24

1 year ago

2.2.25

1 year ago

2.2.23

1 year ago

4.4.59

1 year ago

5.5.62

1 year ago

5.5.63

1 year ago

6.7.92

11 months ago

6.7.93

11 months ago

6.7.94

11 months ago

6.7.95

11 months ago

6.7.96

11 months ago

2.2.35

1 year ago

6.7.97

11 months ago

6.7.98

11 months ago

2.2.33

1 year ago

6.7.99

11 months ago

2.2.34

1 year ago

2.2.31

1 year ago

2.2.32

1 year ago

2.2.30

1 year ago

5.5.66

1 year ago

6.7.90

11 months ago

5.5.64

1 year ago

6.7.91

11 months ago

5.5.65

1 year ago

6.7.89

11 months ago

6.7.82

12 months ago

6.7.83

12 months ago

6.7.84

12 months ago

6.9.121

10 months ago

6.7.85

11 months ago

6.9.120

10 months ago

6.7.86

11 months ago

6.7.87

11 months ago

6.7.88

11 months ago

2.1.17

1 year ago

2.1.16

1 year ago

2.1.14

1 year ago

2.1.15

1 year ago

2.1.13

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago