« first day (3591 days earlier)      last day (1342 days later) » 

12:02 AM
oh gods the conversation about ts after that reply
 
@BenjaminGruenbaum shwhshsdhf
@BenjaminGruenbaum yeah, i'm not very creative
 
@forresthopkinsa lol, that's amazing
 
12:49 AM
Hi all, just found a solution for my JSDoc question, if it can help someone :)
0
A: How to comment a method returning a copy of this, using JSDoc?

Lcf.vsJust found a solution: /** * @typedef Obj * @type {Object} */ /** * @typedef Properties * @type {Object} */ /** * @typedef Return * @type {Object} * @augments Obj * @augments Properties */ const obj = { /** * @param {Properties} [properties] * @returns {Return} */ deriv...

 
1:37 AM
?
i don't know how to help you with a solution
have you tried the solution?
 
@JBis yes, *Storm IDEs are following for the autocomplete
:P
 
oh i read your comment wrong, ignore me im dumb
 
1:56 AM
no worries ;)
 
2:36 AM
Trump is forcing tik tok to be sold!!! yay!!1
 
 
9 hours later…
11:33 AM
JavaScript (for the web) is the only language I've tested "Hello, World!"[0] != 'H' for universal compatibility (charAt is required IE8<)
 
12:25 PM
@VLAZ 'twas a terrible joke, lol
 
 
2 hours later…
2:51 PM
Hi, can anyone please help me understand why my question about starting Node.js apps from system scripts in Linux was downvoted?
https://stackoverflow.com/questions/63420803/how-to-run-a-node-js-app-from-system-sleep-scripts-i-e-right-before-or-after-sy
 
user6718998
3:45 PM
Hi guys. I have a REALLY bothering question
 
user6718998
Why this: exports = () => name => logger.buildLogger(name)(); doesn't work in typescript ? I want to import the code in my javascript file like const logger = require('../common-logger')('some-name');
 
user6718998
I get: require(...) is not a function
 
user6718998
?
 
pretty sure require should be a function, but you should be using es6 imports anway
|| mdn es6 imports
 
3:51 PM
^
 
4:02 PM
@JamesBot's source is in a vault somewhere in the artic, beat that @Wietlol
 
 
2 hours later…
5:49 PM
Does anybody know what import x = require("y") actually does?
For some weird reason, if you tell ReSharper to include something, it produces that line. And it works but I never realised you can mix them. Can't seem to find documentation for it, as well
I was under the impression that you cannot use import as an assignment. Or whatever that actually does. It's weird and not covered under the ES6 documentation on import.
This is in a TS project, by the way. Not sure if it uses a different altered version of import.
Welp...apparently I answered my own question, it is a TS specific thing. Not sure why I didn't check that documentation before.
 
 
1 hour later…
7:10 PM
@JBis why should it be in a vault somewhere in the arctic?
 
 
1 hour later…
8:21 PM
yoo
 
@Hi- I love SO 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.
 
"0" == 0, [] == 0, "0" == []
 
9:02 PM
I need help in angular.
Browser is showing Cannot GET /
and terminal is showing
ERROR in node_modules/angular2-jwt/angular2-jwt.d.ts:88:41 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s). 88 static forRoot(config: AuthConfig): ModuleWithProviders;
I am trying to achieve simple login/logout functionality
 
9:21 PM
@Hi-IloveSO Abstract equality algorithm. "0" == 0" -> operands are string and number, convert the string to a number and do the comparison. Number("0") is 0 which is equal to 0. [] == 0 -> operands are object and number, convert the object to a primitive. For arrays that consists of calling toString() on them. A toString() itself calls .join(",") on the array. So an empty array results in an empty string. Now we're back to the previous case - comparing a string and a number.
Converting an empty string to a number produces 0, which is equal to 0. "0" == [] - operands are a string and an object, convert the object to a primitive. The same operation happens as before and you end up comparing a string that contains zero to an empty string, they aren't equal.
|| mdn equality
 
10:06 PM
@sunil I suspect you have a dependency which doesn't work with the version of angular you are using
But if you can update the angular2-jwt library to latest that should help. Their code seems to be updated: github.com/auth0/angular2-jwt/…
 

« first day (3591 days earlier)      last day (1342 days later) »