Thursday, October 5, 2017

Boolean is so slow in javascript

I use this code if(vm.location !== undefined) in my program but it is working so slow. vm.location variable holds an object and I want to check vm.location is undefined or not.

Do you have any idea?
How can I solve this problem with different approach?

Source: AngularJS



from Angular Questions https://angularquestions.com/2017/10/05/boolean-is-so-slow-in-javascript/
via @lzomedia #developer #freelance #web #lzomedia.com

No comments:

Post a Comment