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
Comments
Post a Comment