Returns true if the query is empty while undefined, "", and [] value will be ignored.
undefined
""
[]
If ignore option is specified, the keys will be ignored.
ignore
クエリが 空 であるかどうかの真偽値を返す。 ただし、undefined, "", and [] があっても無視する。
もし ignore オプションが指定されている場合、指定したキーの値があっても無視する。
isQueryPristine({}) // -> trueisQueryPristine({ id: "a" }, { ignore: "id" }) // -> true Copy
isQueryPristine({}) // -> trueisQueryPristine({ id: "a" }, { ignore: "id" }) // -> true
Optional
Returns true if the query is empty while
undefined
,""
, and[]
value will be ignored.If
ignore
option is specified, the keys will be ignored.クエリが 空 であるかどうかの真偽値を返す。 ただし、
undefined
,""
, and[]
があっても無視する。もし
ignore
オプションが指定されている場合、指定したキーの値があっても無視する。Example