PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.16.8.1
GiveWP – Donation Plugin and Fundraising Platform v4.16.8.1
4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 2.3.2 2.30.0 All 255 releases
give / src / DonationForms / resources / app / utilities / conditionOperatorFunctions.js

conditionOperatorFunctions.js in GiveWP – Donation Plugin and Fundraising Platform 4.16.8.1, at src/DonationForms/resources/app/utilities/conditionOperatorFunctions.js

18 lines 429 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 /**
2 * An object of functions for checking whether simple conditions are met.
3 *
4 * @since 3.0.0
5 */
6 const operatorFunctions = {
7 '=': (a, b) => a == b,
8 '!=': (a, b) => a != b,
9 '>': (a, b) => a > b,
10 '>=': (a, b) => a >= b,
11 '<': (a, b) => a < b,
12 '<=': (a, b) => a <= b,
13 contains: (a, b) => String(a).includes(b),
14 not_contains: (a, b) => !String(a).includes(b),
15 };
16
17 export default operatorFunctions;
18