Skip to main content
Module

x/somefn/js/calculate-logic.ts>logicCalculate

some functions for deno and browser
Latest
function logicCalculate
import { logicCalculate } from "https://deno.land/x/somefn@v0.1.1-jsr/js/calculate-logic.ts";

逻辑计算

在做字符串包含匹配时, 建议:

  1. 定长, 比如 022,122,032 不包含 012.
  2. 额外处理字符串, 比如 ',22,122,32,' 不包含 ',12,'.

Type Parameters

K extends string

Parameters

data: Record<K, string | number>
logicRelationship: LogicRelationship<K>

Returns

boolean