@augment-vir/common
Advanced tools
Comparing version 16.0.1 to 16.1.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.typedMap = exports.typedArrayIncludes = exports.trimArrayStrings = exports.flatten2dArray = exports.filterOutIndexes = void 0; | ||
exports.repeatArray = exports.typedMap = exports.typedArrayIncludes = exports.trimArrayStrings = exports.flatten2dArray = exports.filterOutIndexes = void 0; | ||
function filterOutIndexes(array, indexes) { | ||
@@ -26,1 +26,5 @@ return array.filter((_, index) => !indexes.includes(index)); | ||
exports.typedMap = typedMap; | ||
function repeatArray(repeatCount, array) { | ||
return Array.from({ length: repeatCount }, () => [...array]).flat(); | ||
} | ||
exports.repeatArray = repeatArray; |
@@ -18,1 +18,4 @@ export function filterOutIndexes(array, indexes) { | ||
} | ||
export function repeatArray(repeatCount, array) { | ||
return Array.from({ length: repeatCount }, () => [...array]).flat(); | ||
} |
@@ -13,2 +13,3 @@ import { AtLeastTuple } from './tuple'; | ||
}; | ||
export declare function repeatArray<T>(repeatCount: number, array: T[]): T[]; | ||
export {}; |
{ | ||
"name": "@augment-vir/common", | ||
"version": "16.0.1", | ||
"version": "16.1.0", | ||
"homepage": "https://github.com/electrovir/augment-vir/tree/main/packages/common", | ||
@@ -5,0 +5,0 @@ "bugs": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
150722
3585