@xylabs/exists 2.11.6 → 2.11.8

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,yCAElB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,yCAElB,CAAA"}
@@ -0,0 +1,7 @@
1
+ const exists = (x) => {
2
+ return x === void 0 || x === null ? false : true;
3
+ };
4
+ export {
5
+ exists
6
+ };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * Used to type narrow an object which is possibly null or undefined. Works well\n * with functional Array methods. For example:\n * @example\n * const payloads: XyoPayload[] = boundWitness._payloads?.filter(exists) || []\n * @param x The object which is potentially undefined or null\n * @returns False if the object is null/undefined, true otherwise\n */\nexport const exists = <T>(x?: T | null): x is T => {\n return x === undefined || x === null ? false : true\n}\n"],"mappings":"AAQO,MAAM,SAAS,CAAI,MAAyB;AACjD,SAAO,MAAM,UAAa,MAAM,OAAO,QAAQ;AACjD;","names":[]}
@@ -0,0 +1,37 @@
1
+ import { exists } from "../index";
2
+ const filterableValues = [void 0, null];
3
+ const nonfilterableValue = {};
4
+ describe("exists", () => {
5
+ describe.each(filterableValues)("with all %p", (value) => {
6
+ it("filters all", () => {
7
+ const input = [value, value];
8
+ const actual = input.filter(exists);
9
+ expect(actual.length).toBe(0);
10
+ });
11
+ });
12
+ describe.each(filterableValues)("with mixed %p", (value) => {
13
+ it("filters some", () => {
14
+ const input = [value, nonfilterableValue, value, nonfilterableValue];
15
+ const actual = input.filter(exists);
16
+ expect(actual.length).toBe(2);
17
+ });
18
+ });
19
+ describe.each(filterableValues)("with no %p", () => {
20
+ it("filters none", () => {
21
+ const input = [nonfilterableValue, nonfilterableValue];
22
+ const actual = input.filter(exists);
23
+ expect(actual.length).toBe(input.length);
24
+ });
25
+ });
26
+ it("does not filter zero", () => {
27
+ const input = [0, 1];
28
+ const actual = input.filter(exists);
29
+ expect(actual).toEqual(input);
30
+ });
31
+ it("does not filter false", () => {
32
+ const input = [true, false];
33
+ const actual = input.filter(exists);
34
+ expect(actual).toEqual(input);
35
+ });
36
+ });
37
+ //# sourceMappingURL=exists.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/spec/exists.spec.ts"],"sourcesContent":["import { exists } from '../index'\n\nconst filterableValues = [undefined, null]\nconst nonfilterableValue = {}\n\ndescribe('exists', () => {\n describe.each(filterableValues)('with all %p', (value) => {\n it('filters all', () => {\n const input = [value, value]\n const actual = input.filter(exists)\n expect(actual.length).toBe(0)\n })\n })\n describe.each(filterableValues)('with mixed %p', (value) => {\n it('filters some', () => {\n const input = [value, nonfilterableValue, value, nonfilterableValue]\n const actual = input.filter(exists)\n expect(actual.length).toBe(2)\n })\n })\n describe.each(filterableValues)('with no %p', () => {\n it('filters none', () => {\n const input = [nonfilterableValue, nonfilterableValue]\n const actual = input.filter(exists)\n expect(actual.length).toBe(input.length)\n })\n })\n it('does not filter zero', () => {\n const input = [0, 1]\n const actual = input.filter(exists)\n expect(actual).toEqual(input)\n })\n it('does not filter false', () => {\n const input = [true, false]\n const actual = input.filter(exists)\n expect(actual).toEqual(input)\n })\n})\n"],"mappings":"AAAA,SAAS,cAAc;AAEvB,MAAM,mBAAmB,CAAC,QAAW,IAAI;AACzC,MAAM,qBAAqB,CAAC;AAE5B,SAAS,UAAU,MAAM;AACvB,WAAS,KAAK,gBAAgB,EAAE,eAAe,CAAC,UAAU;AACxD,OAAG,eAAe,MAAM;AACtB,YAAM,QAAQ,CAAC,OAAO,KAAK;AAC3B,YAAM,SAAS,MAAM,OAAO,MAAM;AAClC,aAAO,OAAO,MAAM,EAAE,KAAK,CAAC;AAAA,IAC9B,CAAC;AAAA,EACH,CAAC;AACD,WAAS,KAAK,gBAAgB,EAAE,iBAAiB,CAAC,UAAU;AAC1D,OAAG,gBAAgB,MAAM;AACvB,YAAM,QAAQ,CAAC,OAAO,oBAAoB,OAAO,kBAAkB;AACnE,YAAM,SAAS,MAAM,OAAO,MAAM;AAClC,aAAO,OAAO,MAAM,EAAE,KAAK,CAAC;AAAA,IAC9B,CAAC;AAAA,EACH,CAAC;AACD,WAAS,KAAK,gBAAgB,EAAE,cAAc,MAAM;AAClD,OAAG,gBAAgB,MAAM;AACvB,YAAM,QAAQ,CAAC,oBAAoB,kBAAkB;AACrD,YAAM,SAAS,MAAM,OAAO,MAAM;AAClC,aAAO,OAAO,MAAM,EAAE,KAAK,MAAM,MAAM;AAAA,IACzC,CAAC;AAAA,EACH,CAAC;AACD,KAAG,wBAAwB,MAAM;AAC/B,UAAM,QAAQ,CAAC,GAAG,CAAC;AACnB,UAAM,SAAS,MAAM,OAAO,MAAM;AAClC,WAAO,MAAM,EAAE,QAAQ,KAAK;AAAA,EAC9B,CAAC;AACD,KAAG,yBAAyB,MAAM;AAChC,UAAM,QAAQ,CAAC,MAAM,KAAK;AAC1B,UAAM,SAAS,MAAM,OAAO,MAAM;AAClC,WAAO,MAAM,EAAE,QAAQ,KAAK;AAAA,EAC9B,CAAC;AACH,CAAC;","names":[]}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Used to type narrow an object which is possibly null or undefined. Works well
3
+ * with functional Array methods. For example:
4
+ * @example
5
+ * const payloads: XyoPayload[] = boundWitness._payloads?.filter(exists) || []
6
+ * @param x The object which is potentially undefined or null
7
+ * @returns False if the object is null/undefined, true otherwise
8
+ */
9
+ export declare const exists: <T>(x?: T | null | undefined) => x is T;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,yCAElB,CAAA"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Used to type narrow an object which is possibly null or undefined. Works well
3
+ * with functional Array methods. For example:
4
+ * @example
5
+ * const payloads: XyoPayload[] = boundWitness._payloads?.filter(exists) || []
6
+ * @param x The object which is potentially undefined or null
7
+ * @returns False if the object is null/undefined, true otherwise
8
+ */
9
+ export declare const exists: <T>(x?: T | null | undefined) => x is T;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,yCAElB,CAAA"}
@@ -16,14 +16,12 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/index.ts
21
19
  var src_exports = {};
22
20
  __export(src_exports, {
23
21
  exists: () => exists
24
22
  });
25
23
  module.exports = __toCommonJS(src_exports);
26
- var exists = (x) => {
24
+ const exists = (x) => {
27
25
  return x === void 0 || x === null ? false : true;
28
26
  };
29
27
  // Annotate the CommonJS export names for ESM import in node:
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * Used to type narrow an object which is possibly null or undefined. Works well\n * with functional Array methods. For example:\n * @example\n * const payloads: XyoPayload[] = boundWitness._payloads?.filter(exists) || []\n * @param x The object which is potentially undefined or null\n * @returns False if the object is null/undefined, true otherwise\n */\nexport const exists = <T>(x?: T | null): x is T => {\n return x === undefined || x === null ? false : true\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQO,MAAM,SAAS,CAAI,MAAyB;AACjD,SAAO,MAAM,UAAa,MAAM,OAAO,QAAQ;AACjD;","names":[]}
@@ -1,5 +1,4 @@
1
- // src/index.ts
2
- var exists = (x) => {
1
+ const exists = (x) => {
3
2
  return x === void 0 || x === null ? false : true;
4
3
  };
5
4
  export {
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * Used to type narrow an object which is possibly null or undefined. Works well\n * with functional Array methods. For example:\n * @example\n * const payloads: XyoPayload[] = boundWitness._payloads?.filter(exists) || []\n * @param x The object which is potentially undefined or null\n * @returns False if the object is null/undefined, true otherwise\n */\nexport const exists = <T>(x?: T | null): x is T => {\n return x === undefined || x === null ? false : true\n}\n"],"mappings":"AAQO,MAAM,SAAS,CAAI,MAAyB;AACjD,SAAO,MAAM,UAAa,MAAM,OAAO,QAAQ;AACjD;","names":[]}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var import__ = require("../index");
3
+ const filterableValues = [void 0, null];
4
+ const nonfilterableValue = {};
5
+ describe("exists", () => {
6
+ describe.each(filterableValues)("with all %p", (value) => {
7
+ it("filters all", () => {
8
+ const input = [value, value];
9
+ const actual = input.filter(import__.exists);
10
+ expect(actual.length).toBe(0);
11
+ });
12
+ });
13
+ describe.each(filterableValues)("with mixed %p", (value) => {
14
+ it("filters some", () => {
15
+ const input = [value, nonfilterableValue, value, nonfilterableValue];
16
+ const actual = input.filter(import__.exists);
17
+ expect(actual.length).toBe(2);
18
+ });
19
+ });
20
+ describe.each(filterableValues)("with no %p", () => {
21
+ it("filters none", () => {
22
+ const input = [nonfilterableValue, nonfilterableValue];
23
+ const actual = input.filter(import__.exists);
24
+ expect(actual.length).toBe(input.length);
25
+ });
26
+ });
27
+ it("does not filter zero", () => {
28
+ const input = [0, 1];
29
+ const actual = input.filter(import__.exists);
30
+ expect(actual).toEqual(input);
31
+ });
32
+ it("does not filter false", () => {
33
+ const input = [true, false];
34
+ const actual = input.filter(import__.exists);
35
+ expect(actual).toEqual(input);
36
+ });
37
+ });
38
+ //# sourceMappingURL=exists.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/spec/exists.spec.ts"],"sourcesContent":["import { exists } from '../index'\n\nconst filterableValues = [undefined, null]\nconst nonfilterableValue = {}\n\ndescribe('exists', () => {\n describe.each(filterableValues)('with all %p', (value) => {\n it('filters all', () => {\n const input = [value, value]\n const actual = input.filter(exists)\n expect(actual.length).toBe(0)\n })\n })\n describe.each(filterableValues)('with mixed %p', (value) => {\n it('filters some', () => {\n const input = [value, nonfilterableValue, value, nonfilterableValue]\n const actual = input.filter(exists)\n expect(actual.length).toBe(2)\n })\n })\n describe.each(filterableValues)('with no %p', () => {\n it('filters none', () => {\n const input = [nonfilterableValue, nonfilterableValue]\n const actual = input.filter(exists)\n expect(actual.length).toBe(input.length)\n })\n })\n it('does not filter zero', () => {\n const input = [0, 1]\n const actual = input.filter(exists)\n expect(actual).toEqual(input)\n })\n it('does not filter false', () => {\n const input = [true, false]\n const actual = input.filter(exists)\n expect(actual).toEqual(input)\n })\n})\n"],"mappings":";AAAA,eAAuB;AAEvB,MAAM,mBAAmB,CAAC,QAAW,IAAI;AACzC,MAAM,qBAAqB,CAAC;AAE5B,SAAS,UAAU,MAAM;AACvB,WAAS,KAAK,gBAAgB,EAAE,eAAe,CAAC,UAAU;AACxD,OAAG,eAAe,MAAM;AACtB,YAAM,QAAQ,CAAC,OAAO,KAAK;AAC3B,YAAM,SAAS,MAAM,OAAO,eAAM;AAClC,aAAO,OAAO,MAAM,EAAE,KAAK,CAAC;AAAA,IAC9B,CAAC;AAAA,EACH,CAAC;AACD,WAAS,KAAK,gBAAgB,EAAE,iBAAiB,CAAC,UAAU;AAC1D,OAAG,gBAAgB,MAAM;AACvB,YAAM,QAAQ,CAAC,OAAO,oBAAoB,OAAO,kBAAkB;AACnE,YAAM,SAAS,MAAM,OAAO,eAAM;AAClC,aAAO,OAAO,MAAM,EAAE,KAAK,CAAC;AAAA,IAC9B,CAAC;AAAA,EACH,CAAC;AACD,WAAS,KAAK,gBAAgB,EAAE,cAAc,MAAM;AAClD,OAAG,gBAAgB,MAAM;AACvB,YAAM,QAAQ,CAAC,oBAAoB,kBAAkB;AACrD,YAAM,SAAS,MAAM,OAAO,eAAM;AAClC,aAAO,OAAO,MAAM,EAAE,KAAK,MAAM,MAAM;AAAA,IACzC,CAAC;AAAA,EACH,CAAC;AACD,KAAG,wBAAwB,MAAM;AAC/B,UAAM,QAAQ,CAAC,GAAG,CAAC;AACnB,UAAM,SAAS,MAAM,OAAO,eAAM;AAClC,WAAO,MAAM,EAAE,QAAQ,KAAK;AAAA,EAC9B,CAAC;AACD,KAAG,yBAAyB,MAAM;AAChC,UAAM,QAAQ,CAAC,MAAM,KAAK;AAC1B,UAAM,SAAS,MAAM,OAAO,eAAM;AAClC,WAAO,MAAM,EAAE,QAAQ,KAAK;AAAA,EAC9B,CAAC;AACH,CAAC;","names":[]}
@@ -0,0 +1,37 @@
1
+ import { exists } from "../index";
2
+ const filterableValues = [void 0, null];
3
+ const nonfilterableValue = {};
4
+ describe("exists", () => {
5
+ describe.each(filterableValues)("with all %p", (value) => {
6
+ it("filters all", () => {
7
+ const input = [value, value];
8
+ const actual = input.filter(exists);
9
+ expect(actual.length).toBe(0);
10
+ });
11
+ });
12
+ describe.each(filterableValues)("with mixed %p", (value) => {
13
+ it("filters some", () => {
14
+ const input = [value, nonfilterableValue, value, nonfilterableValue];
15
+ const actual = input.filter(exists);
16
+ expect(actual.length).toBe(2);
17
+ });
18
+ });
19
+ describe.each(filterableValues)("with no %p", () => {
20
+ it("filters none", () => {
21
+ const input = [nonfilterableValue, nonfilterableValue];
22
+ const actual = input.filter(exists);
23
+ expect(actual.length).toBe(input.length);
24
+ });
25
+ });
26
+ it("does not filter zero", () => {
27
+ const input = [0, 1];
28
+ const actual = input.filter(exists);
29
+ expect(actual).toEqual(input);
30
+ });
31
+ it("does not filter false", () => {
32
+ const input = [true, false];
33
+ const actual = input.filter(exists);
34
+ expect(actual).toEqual(input);
35
+ });
36
+ });
37
+ //# sourceMappingURL=exists.spec.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/spec/exists.spec.ts"],"sourcesContent":["import { exists } from '../index'\n\nconst filterableValues = [undefined, null]\nconst nonfilterableValue = {}\n\ndescribe('exists', () => {\n describe.each(filterableValues)('with all %p', (value) => {\n it('filters all', () => {\n const input = [value, value]\n const actual = input.filter(exists)\n expect(actual.length).toBe(0)\n })\n })\n describe.each(filterableValues)('with mixed %p', (value) => {\n it('filters some', () => {\n const input = [value, nonfilterableValue, value, nonfilterableValue]\n const actual = input.filter(exists)\n expect(actual.length).toBe(2)\n })\n })\n describe.each(filterableValues)('with no %p', () => {\n it('filters none', () => {\n const input = [nonfilterableValue, nonfilterableValue]\n const actual = input.filter(exists)\n expect(actual.length).toBe(input.length)\n })\n })\n it('does not filter zero', () => {\n const input = [0, 1]\n const actual = input.filter(exists)\n expect(actual).toEqual(input)\n })\n it('does not filter false', () => {\n const input = [true, false]\n const actual = input.filter(exists)\n expect(actual).toEqual(input)\n })\n})\n"],"mappings":"AAAA,SAAS,cAAc;AAEvB,MAAM,mBAAmB,CAAC,QAAW,IAAI;AACzC,MAAM,qBAAqB,CAAC;AAE5B,SAAS,UAAU,MAAM;AACvB,WAAS,KAAK,gBAAgB,EAAE,eAAe,CAAC,UAAU;AACxD,OAAG,eAAe,MAAM;AACtB,YAAM,QAAQ,CAAC,OAAO,KAAK;AAC3B,YAAM,SAAS,MAAM,OAAO,MAAM;AAClC,aAAO,OAAO,MAAM,EAAE,KAAK,CAAC;AAAA,IAC9B,CAAC;AAAA,EACH,CAAC;AACD,WAAS,KAAK,gBAAgB,EAAE,iBAAiB,CAAC,UAAU;AAC1D,OAAG,gBAAgB,MAAM;AACvB,YAAM,QAAQ,CAAC,OAAO,oBAAoB,OAAO,kBAAkB;AACnE,YAAM,SAAS,MAAM,OAAO,MAAM;AAClC,aAAO,OAAO,MAAM,EAAE,KAAK,CAAC;AAAA,IAC9B,CAAC;AAAA,EACH,CAAC;AACD,WAAS,KAAK,gBAAgB,EAAE,cAAc,MAAM;AAClD,OAAG,gBAAgB,MAAM;AACvB,YAAM,QAAQ,CAAC,oBAAoB,kBAAkB;AACrD,YAAM,SAAS,MAAM,OAAO,MAAM;AAClC,aAAO,OAAO,MAAM,EAAE,KAAK,MAAM,MAAM;AAAA,IACzC,CAAC;AAAA,EACH,CAAC;AACD,KAAG,wBAAwB,MAAM;AAC/B,UAAM,QAAQ,CAAC,GAAG,CAAC;AACnB,UAAM,SAAS,MAAM,OAAO,MAAM;AAClC,WAAO,MAAM,EAAE,QAAQ,KAAK;AAAA,EAC9B,CAAC;AACD,KAAG,yBAAyB,MAAM;AAChC,UAAM,QAAQ,CAAC,MAAM,KAAK;AAC1B,UAAM,SAAS,MAAM,OAAO,MAAM;AAClC,WAAO,MAAM,EAAE,QAAQ,KAAK;AAAA,EAC9B,CAAC;AACH,CAAC;","names":[]}
package/package.json CHANGED
@@ -12,34 +12,25 @@
12
12
  },
13
13
  "description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",
14
14
  "docs": "dist/docs.json",
15
- "types": "dist/index.d.ts",
15
+ "types": "dist/node/index.d.ts",
16
16
  "exports": {
17
17
  ".": {
18
18
  "require": {
19
- "types": "./dist/index.d.ts",
20
- "default": "./dist/index.js"
19
+ "types": "./dist/node/index.d.ts",
20
+ "default": "./dist/node/index.js"
21
21
  },
22
22
  "import": {
23
- "types": "./dist/index.d.mts",
24
- "default": "./dist/index.mjs"
23
+ "types": "./dist/node/index.d.mts",
24
+ "default": "./dist/node/index.mjs"
25
25
  }
26
26
  },
27
- "./dist/docs.json": {
28
- "default": "./dist/docs.json"
29
- },
30
- "./cjs": {
31
- "default": "./dist/index.js"
32
- },
33
27
  "./docs": {
34
28
  "default": "./dist/docs.json"
35
29
  },
36
- "./esm": {
37
- "default": "./dist/index.mjs"
38
- },
39
30
  "./package.json": "./package.json"
40
31
  },
41
- "main": "dist/index.js",
42
- "module": "dist/index.mjs",
32
+ "main": "dist/node/index.js",
33
+ "module": "dist/node/index.mjs",
43
34
  "homepage": "https://xylabs.com",
44
35
  "keywords": [
45
36
  "xylabs",
@@ -48,8 +39,8 @@
48
39
  "esm"
49
40
  ],
50
41
  "devDependencies": {
51
- "@xylabs/ts-scripts-yarn3": "^3.0.28",
52
- "@xylabs/tsconfig": "^3.0.28",
42
+ "@xylabs/ts-scripts-yarn3": "^3.0.55",
43
+ "@xylabs/tsconfig": "^3.0.55",
53
44
  "typescript": "^5.2.2"
54
45
  },
55
46
  "publishConfig": {
@@ -60,5 +51,5 @@
60
51
  "url": "https://github.com/xylabs/sdk-js.git"
61
52
  },
62
53
  "sideEffects": false,
63
- "version": "2.11.6"
54
+ "version": "2.11.8"
64
55
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,yCAElB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,yCAElB,CAAA"}
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * Used to type narrow an object which is possibly null or undefined. Works well\n * with functional Array methods. For example:\n * @example\n * const payloads: XyoPayload[] = boundWitness._payloads?.filter(exists) || []\n * @param x The object which is potentially undefined or null\n * @returns False if the object is null/undefined, true otherwise\n */\nexport const exists = <T>(x?: T | null): x is T => {\n return x === undefined || x === null ? false : true\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAQO,IAAM,SAAS,CAAI,MAAyB;AACjD,SAAO,MAAM,UAAa,MAAM,OAAO,QAAQ;AACjD;","names":[]}
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/**\n * Used to type narrow an object which is possibly null or undefined. Works well\n * with functional Array methods. For example:\n * @example\n * const payloads: XyoPayload[] = boundWitness._payloads?.filter(exists) || []\n * @param x The object which is potentially undefined or null\n * @returns False if the object is null/undefined, true otherwise\n */\nexport const exists = <T>(x?: T | null): x is T => {\n return x === undefined || x === null ? false : true\n}\n"],"mappings":";AAQO,IAAM,SAAS,CAAI,MAAyB;AACjD,SAAO,MAAM,UAAa,MAAM,OAAO,QAAQ;AACjD;","names":[]}
File without changes
File without changes