in src/ObjectStoreProviderUtils.ts [57:70]
export function trimArray<TValue>(
array: Array<TValue>,
trimLength: number
): Array<TValue> {
if (trimLength < 0 || array.length < trimLength) {
return array.slice();
}
let ret = new Array<TValue>(trimLength);
for (let j = 0; j < trimLength; j++) {
ret[j] = array[j];
}
return ret;
}