Lipophilic Statin Use Linked to Doubled Risk of Developing Dementiajnm.snmjournals.org3 points·by jrawlings·5 ปีที่แล้ว·0 comments
jrawlings·13 ปีที่แล้ว·discussRecursive functions like this are more like closures and not pure functions. Aliasing factorial1 and reassigning it will break the recursion [1]. Maybe this is what jbrooksuk was referring to.[1] https://leanpub.com/javascript-allonge/read#recursive
jrawlings·13 ปีที่แล้ว·discussI just didreturn i.indexOf('.') > -1 ? i.substring(i.indexOf('.')+1) : false;Seemed to pass all test cases