Hacker News new | ask | show | jobs
by gowld 98 days ago
Would a plain data object be an instance of PlainYearMonth?

If not, that regardless of being plain data or a serialized object with functions, you'd still need to convert it to the type you want.