From 28231663d14d1b8ea3354bcb079af997b8533cd5 Mon Sep 17 00:00:00 2001 From: kaysonwu <772663139@qq.com> Date: Sat, 11 Sep 2021 18:07:50 +0800 Subject: [PATCH] add is.formData --- readme.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/readme.md b/readme.md index 76f167d..a93800b 100644 --- a/readme.md +++ b/readme.md @@ -432,6 +432,17 @@ Returns `true` if `value` is an odd integer. Returns `true` if `value` can be used as an object property key (either `string`, `number`, or `symbol`). +##### .formData(value) + +Returns `true` if `value` is an instance of the [`FormData` class](https://developer.mozilla.org/en-US/docs/Web/API/FormData). + +```js +const data = new FormData(); + +is.formData(data); +//=> true +``` + ##### .any(predicate | predicate[], ...values) Using a single `predicate` argument, returns `true` if **any** of the input `values` returns true in the `predicate`: