Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new Date() #29

Open
atx49559 opened this issue Aug 3, 2022 · 2 comments
Open

new Date() #29

atx49559 opened this issue Aug 3, 2022 · 2 comments

Comments

@atx49559
Copy link

atx49559 commented Aug 3, 2022

const isObject = require("isobject");

console.log(isObject(new Date())) // true, maybe return false?

Ref: https://developer.mozilla.org/zh-TW/docs/Web/JavaScript/Reference/Operators/typeof

@PumpedSardines
Copy link

Date is an object though?

@atx49559
Copy link
Author

I think isobject only pick key-value type data, but I found other method to satisfied, thank you for reply. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants