Skip to main content
Ben Nadel at Scotch On The Rock (SOTR) 2010 (London) with: Kev McCabe
Ben Nadel at Scotch On The Rock (SOTR) 2010 (London) with: Kev McCabe ( @bigmadkev )

Ian Yates

Member since May 15, 2017

Recent Blog Comments By Ian Yates

  • Inverse Type Guards Work In TypeScript

    Posted on May 15, 2017 at 8:30 AM

    Good post. I use this sort of thing with union types quite frequently. A contrived example const myFunc = (p1: number | number[]) => { if (!_.isArray(p1)) { //here p1 must be number because of type definition for _ being similar to // function isArray(x: T | T[]) : x is Array<T&g... read more »

I believe in love. I believe in compassion. I believe in human rights. I believe that we can afford to give more of these gifts to the world around us because it costs us nothing to be decent and kind and understanding. And, I want you to know that when you land on this site, you are accepted for who you are, no matter how you identify, what truths you live, or whatever kind of goofy shit makes you feel alive! Rock on with your bad self!
Ben Nadel