Skip to main content
14 events
when toggle format what by license comment
Nov 4 at 1:34 history edited radarbob CC BY-SA 4.0
added 847 characters in body
Nov 4 at 1:05 history edited radarbob CC BY-SA 4.0
added 111 characters in body
Nov 3 at 17:04 vote accept Rosemary O'Annah
Nov 2 at 21:30 comment added Blindman67 OP = Original Poster.
Nov 2 at 20:28 comment added radarbob "OP" or "PO" (Post Owner)?
Nov 2 at 8:04 comment added Blindman67 OP's question uses private static methods which is a ES 2022 feature.
Oct 31 at 20:57 history edited Alexander Ivanchenko CC BY-SA 4.0
added 3 characters in body
Oct 31 at 18:56 history edited radarbob CC BY-SA 4.0
deleted 74 characters in body
Oct 31 at 18:45 comment added radarbob nullish coalescing operator came with ES 2020. The PO tagged [tag: ecmascript-6] but the code is not explicitly restricted. I say go with the latest features available.
Oct 31 at 18:28 comment added radarbob ++ default parameter asgnmt. Informative, documenty parameter lists are all the more so with functionally coherent Objects. || default => Oh holy Crockford forgive us our sins! The old falsey fakeout; Who Knew? That's why everyone should get his book.. AFAIK newer ecmascripts hide and swerve but do not eliminate JS's infamously interesting features.
Oct 31 at 10:24 comment added Blindman67 For readability use default parameter assignment. Example constructor(holidays = []) { rather than constructor(holidays) { this.holidays = holidays || []; Also don't use short circuit assignment, rather use safer nullish coalescing operator ?? example this.holidays = holidays ?? [];
Oct 29 at 16:50 history edited radarbob CC BY-SA 4.0
added 1 character in body
Oct 29 at 16:42 history edited radarbob CC BY-SA 4.0
added 658 characters in body
Oct 29 at 16:24 history answered radarbob CC BY-SA 4.0