UNPKG

debt-collector

Version:

a nodejs tool to identify, track and mesure technical debt

6 lines (5 loc) 158 B
import { countAll } from './countAll.js'; export const findOne = (data) => (str) => { const count = countAll(data)(str); return count > 0 ? 1 : 0; };