Why does emptyArray.every() return true in Javascript? Programing Coderfunda September 05, 2024 No comments Why emptyArray.every() returns true? It doesn´t make sense to me because there is no element which you can apply the callBackFunction on? Example: let x=[]; x.every(n=>n>10); I would expect an error... Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment
Thanks