• (nodebb)

    In the end, it's time to brush up on fixing your hyperlinks.

  • (nodebb)

    The real solution is, normalize phone numbers and calling countries. Then, a lot of these problems go away

  • (nodebb) in reply to nerd4sale

    Because I'm a nice guy, here's the link:


  • Anon (unregistered)

    peers at the "victims" array with great suspicion

    Is this...is this phone scam code?

  • (nodebb)

    I didn't think for ... in worked like that in Javascript. Shouldn't it be using i.country_code and not item.victims[i].country_code ?

  • Barry Margolin (github) in reply to thosrtanner

    That is how for...in works in JS. it iterates over object keys, not values; in the case of an array, the keys are the indexes.

    EcmaScript 6 added for (var of array) which iterates over the values.

  • Lurk (unregistered) in reply to Mr. TA

    Nah, the real solution is carrier pigeons. :)

  • löchlein deluxe (unregistered) in reply to Lurk
    Comment held for moderation.
  • Scott (unregistered)
    Comment held for moderation.
  • (nodebb)

    Phone numbers are like timezones/dates. Just get a lib that does it right and stop reinventing the wheel.

  • (nodebb)

    Not to mention that you can't just concatenate the country code and in-country telephone number in many countries.

    For example, my UK mobile telephone number starts 07884.... The zero indicates it has a "standard trunk dialling" code on the front. i.e. it works from anywhere in the UK (in olden days, with fixed lines, you could drop the STD and just dial the last six numbers for anybody else in the same area with the same STD, which was a time saver with dial operated telephones). The international version of my number drops the zero, so it begins +447884..., 44 being the UK's country code.

Leave a comment on “In the Area (code)”

Log In or post as a guest

Replying to comment #:

« Return to Article