Midwest Dev Chat

MidwestDevChat.com

  • The newest 15 messages in the super-cool #random channel.

  • 05/22 16:20:52 Gayle: Just poured out my _closed_ carafe of coffee from this morning … and there’s a drowned spider in my sink now. open_mouth
  • 05/22 16:35:52 Delila: Coffee + Protein
  • 05/24 12:00:01 Pansy: https://twitter.com/lesander_/status/9872681376...
  • 05/25 12:56:05 Reba: https://twitter.com/maybekatz/status/9997272158...
  • 05/25 12:59:36 Lorilee: I'm dying at the twist ending
  • 05/25 13:00:38 Lorilee: like, how did they even do that? Neither `Number.isFinite()` nor `typeof foo === 'number'` give that behavior
  • 05/25 13:02:06 Reba: `typeof Number(input) === 'number'`?
  • 05/25 13:03:16 Lorilee: not quite
    true
  • 05/25 13:03:48 Reba: ... huh.
  • 05/25 13:04:00 Lorilee: maybe it's something crazy like `!Number.isNaN(Number(input))`
  • 05/25 13:06:10 Lorilee:
    [Function: wtf]
    > ['1', 'hi', ':(', 'Infinity', '-Infinity', 'NaN'].map(wtf)
    [ true, false, false, true, true, false ]
  • 05/25 13:11:20 Lorilee: Anyway (soapbox) prefer `isFinite` for that type of validation
    [ true, false, false, false, false, false ]
  • *Usernames have been changed to protect the innocent.
We're currently 1059 members strong. Join us!
Request Invite

Check out all the cool channels!

Join the conversation!