@neovici/cosmoz-omnitable 14.20.0 → 14.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,4 @@
1
- export function findLastIndex(array: any, predicate: any): any;
2
- export const indexSymbol: unique symbol;
1
+ declare const indexSymbol: unique symbol;
2
+ export { indexSymbol };
3
+ export declare const findLastIndex: (array: number[], predicate: (prop: number, index?: number, array?: number[]) => boolean) => number;
3
4
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.js"],"names":[],"mappings":"AAIO,+DAYN;AAhBD,wCAAoC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/lib/utils.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW,eAAkB,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB,eAAO,MAAM,aAAa,GACzB,OAAO,MAAM,EAAE,EACf,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,KAAK,OAAO,WActE,CAAC"}
package/dist/lib/utils.js CHANGED
@@ -4,7 +4,7 @@ exports.findLastIndex = exports.indexSymbol = void 0;
4
4
  const indexSymbol = Symbol('index');
5
5
  exports.indexSymbol = indexSymbol;
6
6
  const findLastIndex = (array, predicate) => {
7
- if (Array.prototype.findLastIndex) {
7
+ if (typeof array.findLastIndex === 'function') {
8
8
  return array.findLastIndex(predicate);
9
9
  }
10
10
  for (let i = array.length - 1; i >= 0; i--) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-omnitable",
3
- "version": "14.20.0",
3
+ "version": "14.21.0",
4
4
  "description": "[![Build Status](https://travis-ci.org/Neovici/cosmoz-omnitable.svg?branch=master)](https://travis-ci.org/Neovici/cosmoz-omnitable)",
5
5
  "keywords": [
6
6
  "web-components"