@luminix/core 0.0.1-beta.12 → 0.0.1-beta.14
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/dist/core.js +3 -1
- package/dist/types/Model.d.ts +1 -0
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -807,7 +807,9 @@ class P {
|
|
|
807
807
|
return _(this), this;
|
|
808
808
|
}
|
|
809
809
|
unique(e) {
|
|
810
|
-
return c(
|
|
810
|
+
return c(
|
|
811
|
+
typeof e == "string" ? [...new Set(h(this, o).map((t) => t[e]))].map((t) => h(this, o).find((r) => r[e] === t)) : [...new Set(h(this, o))]
|
|
812
|
+
);
|
|
811
813
|
}
|
|
812
814
|
uniqueStrict(e) {
|
|
813
815
|
return c(typeof e == "string" ? h(this, o).filter((t, r) => !h(this, o).some((i, s) => i[e] === t[e] && s !== r)) : [...new Set(h(this, o))]);
|
package/dist/types/Model.d.ts
CHANGED