diff --git a/examples/23_custom_query_language.html b/examples/23_custom_query_language.html index 3043d09..2d00ea6 100644 --- a/examples/23_custom_query_language.html +++ b/examples/23_custom_query_language.html @@ -54,7 +54,8 @@ let query = 'data' if (filter) { - // FIXME: parse filter.value either as string or number + // note that the comparisons embrace type coercion, + // so a filter value like '5' (text) will match numbers like 5 too. query = `_.filter(${query}, item => _.get(item, '${filter.field}') ${filter.relation} '${filter.value}')` }