@nevware21/ts-utils

Comprehensive TypeScript/JavaScript utility library with cross-environment support (Node.js, browser, web worker) providing helper functions, polyfills (ES5-ES2023), type checking utilities, and optimized implementations for better minification and code r

extra-array

An array is a collection of values, stored contiguously.
extraarrayaccumulateallOfanyOfappendappend$atbackclonecountAsendsWithfindAllfindIndexfindLastIndexfirstfromfrom$fromApplyfromCallfrontgroupToMapinfixleftmaxmaxEntryminminEntrypartitionAspermutationpermutation$permute$popBackpopBack$popFrontpopFront$prefixprependprepend$pushBackpushBack$pushFrontpushFront$rightsearchAdjacentDuplicatesearchMismatchshuffle$sizestartsWithsubsequencesuffixtoReversedtoSortedtoSplicedvaluewithCombineFunctionCompareFunctionEndFunctionEntriesIEntriesIListsListsMapFunctionProcessFunctionReadFunctionReduceFunctionSwapFunctionTestFunctionadjacentCombineadjacentCombine$cartesianProductchunkclear$compareconcatconcat$copycopy$copyWithincopyWithin$countcountEachcutcutAtcutAtRightcutRightcycledeepClonedifferencedropdropRightdropWhiledropWhileRightentrieseveryexclusiveScanexclusiveScan$fillfill$filterfilter$filterAtfindfindRightflatflatMapforEachfromApplicationfromInvocationfromIterablefromIterable$fromRangegetgetAllgetPathgrouphasInfixhasPathhasPermutationhasPrefixhasSubsequencehasSuffixhasUnsortedValuehasValueheadientriesiinfixesikeysincludesinclusiveScaninclusiveScan$indexindexOfindexRangeinfixesinitinterleaveintermixinterpolateintersectionintersperseipermutationsiprefixesisisDisjointisEmptyisEqualisSortedisUniqueisubsequencesisuffixesivaluesjoinkeyslastlastIndexOflengthmapmap$maximummaximumEntriesmaximumEntrymaximumsmiddleminimumminimumEntriesminimumEntryminimumsmoveWithinmoveWithin$partialSortpartialSort$partitionpartitionEachpermutationspoppop$prefixespushpush$randomInfixrandomPermutationrandomPermutation$randomPrefixrandomSubsequencerandomSuffixrandomValuerangerangeEntriesrangedPartialSortrangedPartialSort$rangedSortrangedSort$reducereduceRightrejectreject$rejectAtremoveremove$removePath$repeatresize$reversereverse$rotaterotate$scanUntilscanUntilRightscanWhilescanWhileRightsearchsearchAdjacentDuplicateValuesearchAllsearchInfixsearchInfixAllsearchInfixRightsearchMaximumValuesearchMaximumValuessearchMinimumValuesearchMinimumValuessearchMismatchedValuesearchRightsearchSubsequencesearchUnsortedValuesearchValuesearchValueAllsearchValueRightsetset$setPath$shallowCloneshiftshift$sliceslice$somesortsort$splicesplice$splitsplitAtsubsequencessuffixesswapswap$swapRangesswapRanges$symmetricDifferencetailtaketakeRighttakeWhiletakeWhileRightunionunion$uniqueunshiftunshift$valueszip

extra-array.web

An array is a collection of values, stored contiguously {web}.
extraarrayaccumulateallOfanyOfappendappend$atbackclonecountAsendsWithfindAllfindIndexfindLastIndexfirstfromfrom$fromApplyfromCallfrontgroupToMapinfixleftmaxmaxEntryminminEntrypartitionAspermutationpermutation$permute$popBackpopBack$popFrontpopFront$prefixprependprepend$pushBackpushBack$pushFrontpushFront$rightsearchAdjacentDuplicatesearchMismatchshuffle$sizestartsWithsubsequencesuffixtoReversedtoSortedtoSplicedvaluewithCombineFunctionCompareFunctionEndFunctionEntriesIEntriesIListsListsMapFunctionProcessFunctionReadFunctionReduceFunctionSwapFunctionTestFunctionadjacentCombineadjacentCombine$cartesianProductchunkclear$compareconcatconcat$copycopy$copyWithincopyWithin$countcountEachcutcutAtcutAtRightcutRightcycledeepClonedifferencedropdropRightdropWhiledropWhileRightentrieseveryexclusiveScanexclusiveScan$fillfill$filterfilter$filterAtfindfindRightflatflatMapforEachfromApplicationfromInvocationfromIterablefromIterable$fromRangegetgetAllgetPathgrouphasInfixhasPathhasPermutationhasPrefixhasSubsequencehasSuffixhasUnsortedValuehasValueheadientriesiinfixesikeysincludesinclusiveScaninclusiveScan$indexindexOfindexRangeinfixesinitinterleaveintermixinterpolateintersectionintersperseipermutationsiprefixesisisDisjointisEmptyisEqualisSortedisUniqueisubsequencesisuffixesivaluesjoinkeyslastlastIndexOflengthmapmap$maximummaximumEntriesmaximumEntrymaximumsmiddleminimumminimumEntriesminimumEntryminimumsmoveWithinmoveWithin$partialSortpartialSort$partitionpartitionEachpermutationspoppop$prefixespushpush$randomInfixrandomPermutationrandomPermutation$randomPrefixrandomSubsequencerandomSuffixrandomValuerangerangeEntriesrangedPartialSortrangedPartialSort$rangedSortrangedSort$reducereduceRightrejectreject$rejectAtremoveremove$removePath$repeatresize$reversereverse$rotaterotate$scanUntilscanUntilRightscanWhilescanWhileRightsearchsearchAdjacentDuplicateValuesearchAllsearchInfixsearchInfixAllsearchInfixRightsearchMaximumValuesearchMaximumValuessearchMinimumValuesearchMinimumValuessearchMismatchedValuesearchRightsearchSubsequencesearchUnsortedValuesearchValuesearchValueAllsearchValueRightsetset$setPath$shallowCloneshiftshift$sliceslice$somesortsort$splicesplice$splitsplitAtsubsequencessuffixesswapswap$swapRangesswapRanges$symmetricDifferencetailtaketakeRighttakeWhiletakeWhileRightunionunion$uniqueunshiftunshift$valueszip