1.1.17 • Published 10 months ago

@swenkerorg/vitae-ut v1.1.17

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

@swenkerorg/vitae-ut Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this value a JS regex? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

Example

var isRegex = require('@swenkerorg/vitae-ut');
var assert = require('assert');

assert.notOk(isRegex(undefined));
assert.notOk(isRegex(null));
assert.notOk(isRegex(false));
assert.notOk(isRegex(true));
assert.notOk(isRegex(42));
assert.notOk(isRegex('foo'));
assert.notOk(isRegex(function () {}));
assert.notOk(isRegex([]));
assert.notOk(isRegex({}));

assert.ok(isRegex(/a/g));
assert.ok(isRegex(new RegExp('a', 'g')));

Tests

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

importexecECMAScript 2017colorsformszerowalkinghttpsrequestinputnegative zerotoobjectplugincompilerregular expressiontap-0reversepostcsssuperstructSetuser-streamshasharraybufferomit0Object.valuestslibjshintfullshrinkwrapmobiletextredirectmkdirrm -rfsameValueZerowafsomereversedmatchdataViewURLSearchParamsownoptimistvarsTypedArraypureenumerablekeyrmdebugtoArrayoptimizerapollofastifyendpointURLprefixkarmaArray.prototype.flatglobalspicomatchgraphqlfull-widthObject.definePropertytostringtagquerybundlingmruES2015toolslockfileruntimejson-schema-validatorbrowserutilstermlocalequalspringutilitiescircularxtermjson-schema-validationArrayloggingstylesbinajaxcore-jsmoduleStreamhasOwnbusyUnderscore6to5metadatawgetyuphardlinksvalidiamtimepackagesmkdirsformattingcss-in-jsnodejscreatesinatraparentescapeform-validationweakmapuuidcloudfronttypedarraynumberES2023viewfromdescriptornopeapicoverageregular expressionsunicodea11ypostcss-pluginprogressregularlengthasciiinstallersesgetterprototypesideconstmake dirwhatwgcharactersl10nutil.inspectwidthhooksECMAScript 6columnscolourdirectorycloudtrailinternalcloudformationspinnershellObject.getPrototypeOfparsemodulesglobalThisinstallsymlinksdeepprotoprotocol-bufferstypanionweboncesharedintrinsicjQueryfantasy-landexpressionbabel-coretypeshas-ownObjectchildReflect.getPrototypeOfwritablebindincludescloudsearchrobustArrayBufferloadbalancingfetchecmascriptfunctionalspeeddataviewinternal slotzodlanguagefastcopyreact-hookselasticachecurriedfindupvaluestranspilerselfsubprocessrfc4122redux-toolkitmapguidreadablebyteLengthnamedescriptorsObject.entriesinspectperformanceObject.assignRFC-6455appreworkbannerUint8Arrayprettyhtmlreact-testing-libraryECMAScript 2022scheme-validationatompolyfilleses2018tsaccessorfile systemInt16ArraymovesearchoffsetloggermomentutilArray.prototype.includesdom-testing-libraryespreestablegetOwnPropertyDescriptorInt8ArraytrimEndtransportString.prototype.trimwaapireduxeslintconfiglogfindLastdefinerulesmonorepohasOwnPropertytoStringTagECMAScript 7boundlistenersschemagitignoredatesetterstringlettakearktypeECMAScriptWebSocketsreact poserecursiveES2018swfUint32Arrayes5ebssharedarraybuffernativetestsetImmediates3tddES2021testingperformantmanagerconcatmatchesassertsRxJSconfigurablejson-schemaes2016bufferAsyncIteratorgesturestoucheslintplugintesterproxybinariesoutputgdprpackage.jsongetmatchAllfunctionseffect-tsresolveflatserializeassertionfilterfsstringifyairbnbtrimfast-copyinferencenegativebyteOffsetassignarraysglobalobjroutestyleguideshebangvisualphoneparentsdirframercloneurlclassnameseventsreadRegExp.prototype.flagsawsformkeyslrumanipulationmakeemitObservableflaglookMicrosoftredactchinesesafecompareimportexportString.prototype.matchAllcurlvalidationwaitcommand-lineisConcatSpreadabledomdeep-copySymbolbrowserlistcommandrsspnpm9es-shimsWeakMapjestECMAScript 2016validatorvestsuperagentvpcagentmergechromereuseES2020Float32ArrayES6dependency managercolumnbeanstalkES3typedArray.prototype.findLastIndexjavascriptES7astspeccoloramazonwhichcode pointsdynamodbstringifierqsCSSStyleDeclarationforkcall-bindargvcontainssetpushglobal this valuetc39fnmatchstructuredClonechailinktraverselint256source mapstreamserializationArray.prototype.containstypeofbdddeepcopyfindLastIndexclassesfastcloudwatch[[Prototype]]packagedotenvajvtacitwindowObject.fromEntriescommanderstyled-componentsfullwidthvalidaterestqueueemrenvironmentcoreES2019babelhttpWeakSetvaluetoReversedpackage managereslint-plugingroupSymbol.toStringTagES5fastcloneclientkinesisasterisksparserstylees7dataslotec2Uint16Arrayfeedsortedcheck.envECMAScript 2015ie
1.1.17

10 months ago

1.1.16

10 months ago

1.1.15

10 months ago

1.1.14

10 months ago

1.1.13

10 months ago

1.0.13

11 months ago

1.0.12

11 months ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.3

11 months ago

1.0.2

11 months ago

1.0.1

11 months ago

1.0.0

11 months ago