What is your favorite JavaScript object?

Mine would have to be the array! IntersectionObserver might be a distantā€¦VERY distant second :stuck_out_tongue:

I like Function. But, hey, Arrays are cool too.

Boolean

Well maybe, or maybe not?

elm user?

1 Like

Maybe Just Maybe (oh) Nothing ? :yum:

1 Like

this,
but is it always an object?

Not always, but it is most of the time, so that should count. :+1:

Date, because who doesnā€™t like an object that can get you dates :run_in_fear:

RegExp is pretty neat too.

3 Likes

I donā€™t have a favorite, but I like how random things can be combined:

Infinity.constructor(NaN) // NaN
NaN.constructor(Infinity) // Infinity

RegExp`Heya`
throw Symbol`hey`

(_ => Object)`${ void 0 }`

Hmm, looks like all these examples use functionsā€¦ just sayin!
:wink:

@senocular, I appreciate how you first ā€œlikedā€ my Boolean answer then ā€œun-likedā€ it, very Boolean-esque. :nerd_face:

Itā€™s been a whileā€¦ are JS functions not objects?

Maybe I did, maybe I didnā€™t :ninja:

2 Likes

They are. I said I liked functions. Then you come and show a bunch of functions, so I feel validated :wink:

1 Like