To use the hasOwnProperty function from the fs-extra module in Node.js:
index.tsx32 chars2 lines
hasOwnProperty function on any object you want to check for a particular property:index.tsx231 chars11 linesThe hasOwnProperty function takes two arguments: the object to check and the property name to check for. It returns true if the object has the property and false otherwise.
gistlibby LogSnag