DEV Community

Discussion on: JQuery Footguns?

Collapse
 
rhymes profile image
rhymes

Don't know if you know but jQuery has promises/deferreds/futures. You can do neat things with them :)

Thread Thread
 
deciduously profile image
Ben Lovy

Should they be used in lieu of es6 promises?

Thread Thread
 
rhymes profile image
rhymes

They came before, I think they've inspired them. I'm not sure how compatible they are. Methods like $.get() return such deferreds, but I haven't tried to mix the two :D

Thread Thread
 
deciduously profile image
Ben Lovy

A cursory glance suggests they aren't really compatible. I'll have to play with it, I've only used the newfangled jazz.