GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Puniko ? (puniko@mk.absturztau.be)'s status on Monday, 20-Mar-2023 16:43:16 JST Puniko ? Puniko ?
    • malevolent dictator for life

    @astrid@fedi.astrid.tech :char_nachoneko_baa: javascript

    In conversation Monday, 20-Mar-2023 16:43:16 JST from mk.absturztau.be permalink
    • Embed this notice
      Puniko ? (puniko@mk.absturztau.be)'s status on Monday, 20-Mar-2023 16:49:11 JST Puniko ? Puniko ?
      in reply to
      • malevolent dictator for life

      @astrid@fedi.astrid.tech == checks for equal(ish) and === checks for reference. and this is the output of a test case in karma (a js unit testing framework) where i used .toBe instead of .toEqual

      In conversation Monday, 20-Mar-2023 16:49:11 JST permalink
    • Embed this notice
      malevolent dictator for life (astrid@fedi.astrid.tech)'s status on Monday, 20-Mar-2023 16:49:14 JST malevolent dictator for life malevolent dictator for life
      in reply to
      @puniko oh, that makes sense (I think)
      If you're checking with == then it's probably checking the references, like 2 different instances of lists aren't equal to each other. To check that their contents are equal, well, that's a bit more involved
      In conversation Monday, 20-Mar-2023 16:49:14 JST permalink
    • Embed this notice
      niconiconi (niconiconi@mk.absturztau.be)'s status on Monday, 20-Mar-2023 17:02:20 JST niconiconi niconiconi
      in reply to
      • malevolent dictator for life

      @puniko @astrid@fedi.astrid.tech JavaScript has a pretty loose interpretation of "equality", to the point that most linters generate warnings whenever you use "==" instead of "==="

      In conversation Monday, 20-Mar-2023 17:02:20 JST permalink
      Puniko ? likes this.
    • Embed this notice
      Puniko ? (puniko@mk.absturztau.be)'s status on Monday, 20-Mar-2023 17:04:58 JST Puniko ? Puniko ?
      in reply to
      • niconiconi
      • malevolent dictator for life

      @niconiconi @astrid@fedi.astrid.tech :char_nachoneko_baa: thats why i wrote "equal(ish)"[] == "" // true 0 == "0" // true [] == "0" // false

      In conversation Monday, 20-Mar-2023 17:04:58 JST permalink
    • Embed this notice
      Puniko ? (puniko@mk.absturztau.be)'s status on Monday, 20-Mar-2023 17:05:45 JST Puniko ? Puniko ?
      in reply to
      • niconiconi
      • malevolent dictator for life

      @niconiconi @astrid@fedi.astrid.tech
      [] == 0 evaluates to true btw :char_nachoneko_baa:

      In conversation Monday, 20-Mar-2023 17:05:45 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.