@woosh/meep-engine 2.48.8 → 2.48.9
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.
package/package.json
CHANGED
|
@@ -5,6 +5,7 @@ import { IsEqual } from "./IsEqual.js";
|
|
|
5
5
|
import { IsNull } from "./IsNull.js";
|
|
6
6
|
import { IsIterableContaining } from "./IsIterableContaining.js";
|
|
7
7
|
import { Matcher } from "../Matcher.js";
|
|
8
|
+
import { IsUndefined } from "./IsUndefined.js";
|
|
8
9
|
|
|
9
10
|
export function anyOf(...matchers) {
|
|
10
11
|
return new AnyOf(matchers);
|
|
@@ -34,6 +35,16 @@ export function isNotNull() {
|
|
|
34
35
|
return not(isNull());
|
|
35
36
|
}
|
|
36
37
|
|
|
38
|
+
export function isUndefined() {
|
|
39
|
+
return new IsUndefined();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function isDefined() {
|
|
43
|
+
return not(isUndefined());
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export const isNoUndefined = isDefined;
|
|
47
|
+
|
|
37
48
|
/**
|
|
38
49
|
* @template
|
|
39
50
|
* @param {Matcher|T} value
|
|
@@ -45,6 +56,5 @@ export function hasItem(value) {
|
|
|
45
56
|
} else {
|
|
46
57
|
return new IsIterableContaining(equalTo(value));
|
|
47
58
|
}
|
|
48
|
-
|
|
49
59
|
}
|
|
50
60
|
|