UNPKG

@code-o-mat/history-cache

Version:

A data object structure that logs all changes using the immutable library

9 lines (7 loc) 299 B
import { assert } from '@code-o-mat/globals/lib/assertions/base-assertions'; export const assertIsSearchTerm = (value, message = "Invalid Search Term") => { const ty = typeof value; assert(ty === 'number' || ty === 'string' || ty === 'symbol', message) }