Checks whether the given handle-like object represents a file.
The FileSystemHandleLike object to check.
FileSystemHandleLike
true if the handle-like object represents a file, otherwise false.
true
false
1.1.0
statSync('/path/to/file') .inspect(handle => isFileHandleLike(handle) && console.log(`File size: ${ handle.size }`)); Copy
statSync('/path/to/file') .inspect(handle => isFileHandleLike(handle) && console.log(`File size: ${ handle.size }`));
Checks whether the given handle-like object represents a file.