Detect if JavaScript object is a FormData instance -


i looking way check if object formdata instance, array.isarray()

edit: if knows instanceof, won't need pointed instanceof. not duplicate.

use instanceof

for example:

let formdata = new formdata()  let time = new date()    console.log("statement: formdata formdata instance", formdata instanceof formdata) // statement true  console.log("statement: time formdata instance", time instanceof formdata) // statment false

source


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -