4af10ef637d1e4f9a5e9ee17e1fac12da161c22acd4aa6bf2e381bb9f8726ba8.json 688 B

1
  1. {"ast":null,"code":"import toNumber from './toNumber.js';\n\n/**\n * Creates a function that performs a relational operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @returns {Function} Returns the new relational operation function.\n */\nfunction createRelationalOperation(operator) {\n return function (value, other) {\n if (!(typeof value == 'string' && typeof other == 'string')) {\n value = toNumber(value);\n other = toNumber(other);\n }\n return operator(value, other);\n };\n}\nexport default createRelationalOperation;","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}