Remove use of Symbol (it's not serializable)

This commit is contained in:
josdejong 2020-05-20 10:16:13 +02:00
parent 93f3375c55
commit a0aaf206fa
1 changed files with 3 additions and 3 deletions

View File

@ -1,10 +1,10 @@
import { valueType } from './utils/typeUtils'
export const SEARCH_PROPERTY = Symbol('searchProperty')
export const SEARCH_VALUE = Symbol('searchValue')
export const SEARCH_PROPERTY = '$jse:search:property'
export const SEARCH_VALUE = '$jse:search:value'
export function search (key, value, searchText) {
let results
let results = undefined
if (typeof key === 'string' && containsCaseInsensitive(key, searchText)) {
results = createOrAdd(results, SEARCH_PROPERTY, true)