2.7.31 • Published 1 year ago

@dramaorg/ratione-asperiores-quae v2.7.31

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@dramaorg/ratione-asperiores-quae

Give @dramaorg/ratione-asperiores-quae an item to iterate (array, object or map) and an iterator, then in return @dramaorg/ratione-asperiores-quae gives iterator the value and key of each item, and will stop if the iterator returned false.

Usage

Complete API Documentation.

Eachr accepts an array, object, or map. The iterator is bound to the list, and receives three arguments: the value, key, and list.

// Prepare
const @dramaorg/ratione-asperiores-quae = require('@dramaorg/ratione-asperiores-quae')
const arr = ['first', 'second', 'third']
const obj = { a: 'first', b: 'second', c: 'third' }
const map = new Map([
    ['a', 'first'],
    ['b', 'second'],
    ['c', 'third'],
])
function iterator(value, key) {
    console.log({ value: value, key: key })
    if (value === 'second') {
        console.log('break')
        return false
    }
}

// Cycle Array
@dramaorg/ratione-asperiores-quae(arr, iterator)
// {'value': 'first',  'key': 0}
// {'value': 'second', 'key': 1}
// break

// Cycle Object
@dramaorg/ratione-asperiores-quae(obj, iterator)
// {'value': 'first',  'key': 'a'}
// {'value': 'second', 'key': 'b'}
// break

// Cycle Map
@dramaorg/ratione-asperiores-quae(map, iterator)
// {'value': 'first',  'key': 'a'}
// {'value': 'second', 'key': 'b'}
// break

Install

npm

  • Install: npm install --save @dramaorg/ratione-asperiores-quae
  • Import: import pkg from ('@dramaorg/ratione-asperiores-quae')
  • Require: const pkg = require('@dramaorg/ratione-asperiores-quae').default

Deno

import pkg from 'https://unpkg.com/@dramaorg/ratione-asperiores-quae@^7.4.0/edition-deno/index.ts'

Skypack

<script type="module">
    import pkg from '//cdn.skypack.dev/@dramaorg/ratione-asperiores-quae@^7.4.0'
</script>

unpkg

<script type="module">
    import pkg from '//unpkg.com/@dramaorg/ratione-asperiores-quae@^7.4.0'
</script>

jspm

<script type="module">
    import pkg from '//dev.jspm.io/@dramaorg/ratione-asperiores-quae@7.4.0'
</script>

Editions

This package is published with the following editions:

  • @dramaorg/ratione-asperiores-quae aliases @dramaorg/ratione-asperiores-quae/index.cjs which uses the Editions Autoloader to automatically select the correct edition for the consumer's environment
  • @dramaorg/ratione-asperiores-quae/source/index.ts is TypeScript source code with Import for modules
  • @dramaorg/ratione-asperiores-quae/edition-browsers/index.js is TypeScript compiled against ES2022 for web browsers with Import for modules
  • @dramaorg/ratione-asperiores-quae/edition-es2022/index.js is TypeScript compiled against ES2022 for Node.js 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules
  • @dramaorg/ratione-asperiores-quae/edition-es5/index.js is TypeScript compiled against ES5 for Node.js 4 || 6 || 8 || 10 || 12 || 14 || 16 || 18 || 20 || 21 with Require for modules
  • @dramaorg/ratione-asperiores-quae/edition-es2022-esm/index.js is TypeScript compiled against ES2022 for Node.js 12 || 14 || 16 || 18 || 20 || 21 with Import for modules
  • @dramaorg/ratione-asperiores-quae/edition-types/index.d.ts is TypeScript compiled Types with Import for modules
  • @dramaorg/ratione-asperiores-quae/edition-deno/index.ts is TypeScript source code made to be compatible with Deno

History

Discover the release history by heading on over to the HISTORY.md file.

Backers

Code

Discover how to contribute via the CONTRIBUTING.md file.

Authors

Maintainers

Contributors

Finances

Sponsors

  • Andrew Nesbitt — Software engineer and researcher
  • Balsa — We're Balsa, and we're building tools for builders.
  • Codecov — Empower developers with tools to improve code quality and testing.
  • Poonacha Medappa
  • Rob Morris
  • Sentry — Real-time crash reporting for your web apps, mobile apps, and games.
  • Syntax — Syntax Podcast

Donors

License

Unless stated otherwise all works are:

and licensed under:

fast-clonelimitedidworkspace:*ArrayBuffer#slicerandomconcurrencysameValueZerotouchgetterdefineArrayBufferArray.prototype.findLastIndexcompile lessroute53lruownstoragegatewaycolumnsconcatconsumetdddotenvajveventsweakset256testdescriptioncss-in-jsnopecompareoptiones7formattingObservablespostcss-pluginES7handlersbrowserlistrequestsyntaxcachefunctionalRxJSwhichfunctionssnsreadreal-timearraybuffertoolslook-uppackagesettingswatchFilecompilergradients csssymlinkrobustyupscheme-validationcryptojsdiffhas-ownreadableisConcatSpreadabletypesvalueperformantpathES2020io-tspyyamls3connectString.prototype.matchAllsortcorsfromes-abstractdeep-copycheckexpressionsetPrototypeOfdescriptorsES6rmdataviewvpcwriteexitworkerqueuebusypolyfillrm -rfrgbeslintplugininputfseventscolumnES2021passwordes2017optimizervalidationphoneWeakMapArray.prototype.containsfastcloneURLSearchParamsUint8Arraya11y__proto__WebSocketstestingfastcopysetprogresseventDispatchermatchcommand-lineboundstringgetoptclass-validatorObject.ismruMicrosofttrimEndfindupieECMAScript 2015findLastIndexhasserializationfetchesgetOwnPropertyDescriptordropCSSStyleDeclarationenvkoreanhasOwnPropertyjsonpathiamcoreeventEmittercolorsprototypecallboundlibphonenumberframeworkapolloansicodesArrayformattypescriptsetterJSON-SchemaECMAScript 2016sidehasOwnsignalsObject.fromEntriesreact-hook-formkarmaloggercoerciblefind-upwrapkeyupstructuredClonenodejsstreamsentriescommandsortedtypedarrayrecursivespinnerparentgetPrototypeOf@@toStringTaginferenceFloat64ArraymiddlewareargumentratelimitconfigurablecharactertoSortedroutemovetrimRightcopycryptString.prototype.trimcallbindthrottleECMAScript 2018jwtObject.valuesObject.definePropertyhttpsexecoptimistfile systemspinnersprivate dataES2022dirflagwatchingJSONlintsigtermcollection.es6$.extendauthreusewordbreakgenericsttymapfilecall-bindprotoelmECMAScript 2021jQuerytyped arraytermavamkdirtrimqueueMicrotaskquerystringparentsfilterlookESnextguidinternal slotfastredactstatustaskterminalchannelequalityremovelistenersBigInt64ArrayECMAScript 2017es-shim APIestreegraphqlReflect.getPrototypeOfsyntaxerrorproxydataViewUnderscorematchesjsdomenderHyBideep-clonedeletetoolkitpackage managerspeedstylesheetdirectoryObject.entries_.extendTypedArraysequencetypanionutilless mixinsairbnblinkglobvalidatemapreduceassignslicedayjsjsxtextbatcheslintconfigECMAScript 2023parsepushdatadomcore-jsdeterministicpostcssECMAScript 5importexportarraylanguagecensormatchAllprunewindowserror-handlingviewwebargvuuidglaciercloudformationgroupByeast-asian-widthECMAScript 6typedarraysTypeScriptrequireprotocol-buffersrdsnameselasticachenested csshigher-orderdependency managerbluebirdsharedtostringtagyamlelbregexpmonoreposhamhelpersbddcloudfrontworkflowsigintES2018ArrayBuffer.prototype.slicestylingprocesssymbolssomeES2015asciiuninstallassertiondateparsertelephonerateerrorforEachES5Function.prototype.namebytetypedthroatliveRegExp#flagsarktypesymbolpipeelectroniterateUint16Arrayreplaymixinsoutput0urlIteratorfullwidthless cssserializerrm -fremrfpsencryptionkeysextensionPromiseshimextendassertsWebSocketirqbrowserxhrtapequeryperformanceserializefull-widthECMAScript 2019inBigUint64ArraywarningmodulefastifyunicodestyleswfmkdirschromehookformbyteOffsetpreserve-symlinksdebuggerjestfindLastcharactersjapanesesearchexpressArray.prototype.flatMapFloat32ArrayArray.prototype.flattenminimalpromiseES8efficientStreammulti-packageprotobufjsonoffsetassertredux-toolkitReactiveXutilityidlebundlermime-dbstatetesteres2015runtimeimportcall-boundbyteLengthonceinterruptsawstimetsloadingmakereactemojiflagsshellconfiges-shimszeroless.jssafestringifyformsfullstdlibbcrypttraversecolourfast-deep-cloneflatxterminternal
2.7.29

1 year ago

2.7.28

1 year ago

2.7.27

1 year ago

2.4.14

1 year ago

2.4.16

1 year ago

2.4.15

1 year ago

2.5.21

1 year ago

2.5.22

1 year ago

2.5.23

1 year ago

2.5.24

1 year ago

2.7.26

1 year ago

2.7.25

1 year ago

2.5.20

1 year ago

2.5.18

1 year ago

2.5.19

1 year ago

2.5.16

1 year ago

2.5.17

1 year ago

2.7.31

1 year ago

2.6.24

1 year ago

2.7.30

1 year ago

2.6.25

1 year ago

2.4.13

1 year ago

2.4.9

1 year ago

2.4.10

1 year ago

2.4.12

1 year ago

2.4.11

1 year ago

2.4.8

1 year ago

2.4.7

1 year ago

2.4.6

1 year ago

2.4.5

1 year ago

2.3.5

1 year ago

2.3.4

1 year ago

2.2.4

1 year ago

2.2.3

1 year ago

2.2.2

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago