@NoobDev Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
@bithub Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
Any elasticsearch users here? If you have a pascal case string does elastic search tokenize it into its respective components and create the inverted index?
I'm reading a couple article on best practices for API calls using NgRx
in an Angular app. Am I right in thinking just dispatch all requests via an action in the component. Then have an effect fire off the API request and appropriate response / error actions on the reducer?
or is there more to it than meets the eye? Like actions for request, request_success, request_failed
||> let a1 = ['Coffee', 'Ice Cream', 'Lemon']; let a2 = ['tea', 'Ice Cream', 'coco']; let s = new Set(a1); a2.forEach(item => s.add(item)); Array.from(s);
So, I just created this canvas script as part of a little script I was making to convert Paragraphs to little PDF Images (Im just converting them to PNGs)
lol Its just a strange concept, Im used to being able to place elements inside each other in programming, or atleast selecting different values, code, and executing where I want when I want using Classes, functions, variables, etc
Great job on the MDN command JBis! I always wondered why there wasn't something like that in Caprica (similar to OakBots /javadoc) and I am really happy to see something like this implemented here :)
@Suisse let clientSecret = await createStripeIntent()
You can't "return" the value out of a chain of promises to your synchronous code, any more than you can return the value out of any other async callback
but you can use await to make it seem like you can
@TaylorS Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
you can make an http request from the server that receives jsonp (which is json wrapped in a function call), but that would require you unwrapping it before parsing it as json.
if the endpoint supports json, you should just use json
there's a event called onversionchange for indexedDB, developer.mozilla.org/en-US/docs/Web/API/IDBDatabase/… says that i need to refresh the page or use the new opened tab (after update db), but when i refresh the page the browser does not use the new version of db. It works this way? Or i need to implement some kind of logic to tell the browser to use the new version on refresh?