mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 10:52:45 +08:00
DEV: Add a has
truth-helper for use with Set
(#26980)
and clean up re-exports
This commit is contained in:
parent
38bd0b3f86
commit
fc76622b56
1
app/assets/javascripts/truth-helpers/app/helpers/has.js
Normal file
1
app/assets/javascripts/truth-helpers/app/helpers/has.js
Normal file
|
@ -0,0 +1 @@
|
|||
export { default } from "truth-helpers/helpers/has";
|
3
app/assets/javascripts/truth-helpers/src/helpers/has.js
Normal file
3
app/assets/javascripts/truth-helpers/src/helpers/has.js
Normal file
|
@ -0,0 +1,3 @@
|
|||
export default function has(set, item) {
|
||||
return set.has(item);
|
||||
}
|
|
@ -1,10 +1,11 @@
|
|||
export { default as and } from "./helpers/and.js";
|
||||
export { default as eq } from "./helpers/eq.js";
|
||||
export { default as gt } from "./helpers/gt.js";
|
||||
export { default as gte } from "./helpers/gte.js";
|
||||
export { default as includes } from "./helpers/includes.js";
|
||||
export { default as lt } from "./helpers/lt.js";
|
||||
export { default as lte } from "./helpers/lte.js";
|
||||
export { default as notEq } from "./helpers/not-eq.js";
|
||||
export { default as not } from "./helpers/not.js";
|
||||
export { default as or } from "./helpers/or.js";
|
||||
export { default as and } from "./helpers/and";
|
||||
export { default as eq } from "./helpers/eq";
|
||||
export { default as gt } from "./helpers/gt";
|
||||
export { default as gte } from "./helpers/gte";
|
||||
export { default as has } from "./helpers/has";
|
||||
export { default as includes } from "./helpers/includes";
|
||||
export { default as lt } from "./helpers/lt";
|
||||
export { default as lte } from "./helpers/lte";
|
||||
export { default as not } from "./helpers/not";
|
||||
export { default as notEq } from "./helpers/not-eq";
|
||||
export { default as or } from "./helpers/or";
|
||||
|
|
Loading…
Reference in New Issue
Block a user