Remove use of Symbol (it's not serializable)
This commit is contained in:
parent
93f3375c55
commit
a0aaf206fa
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue