Glen Whitney
072b2a1f79
Avoids clumsy naming properties by making the names the keys in an interface to which the signatures of all operations must be published. This also reduces the number of different symbols and avoids long lists of imports in the modules implementing multiple operations, which were redundant with the list of functions exported from such modules.
6 lines
176 B
TypeScript
6 lines
176 B
TypeScript
import {Dependencies, OpType} from '../interfaces/type.js'
|
|
|
|
export const unequal =
|
|
<T>(dep: Dependencies<'equal', T>): OpType<'unequal', T> =>
|
|
(x, y) => !dep.equal(x, y)
|