Stoyan Stefanov:
> What ES5 shims are you using that you can recommend?
As you know some of the general ES5 features cannot be implemented in
ES3 environment. Those which rely on internal properties and their
values in most cases cannot be emulated. For example `defineProperty',
`getOwnPropertyNa
Yep. It drops the decimal part.
On Tue, Aug 30, 2011 at 12:12 PM, Matthias Reuter wrote:
>> number >>> 0 is:
>> - number if number >= 0
>> - (the highest number) - number if number < 0
>> So it makes sure the number is positive but if it is negative, as it
>> should be positive, it assumes it is
number >>> 0 is:
- number if number >= 0
- (the highest number) - number if number < 0
So it makes sure the number is positive but if it is negative, as it
should be positive, it assumes it is the number to go down from the
highest number, which makes more sence than just taking the minus sign
off
number >>> 0 is:
- number if number >= 0
- (the highest number) - number if number < 0
So it makes sure the number is positive but if it is negative, as it
should be positive, it assumes it is the number to go down from the
highest number, which makes more sence than just taking the minus sign
off
I use the shims given on MDC. I got slapped for it twice because other
developers could not make any sense from some lines ("What does var len =
t.length >>> 0; do? Can't we write that any simpler?"). I edited some
minor parts because closure compiler stumbled upon (1 / 0), but generally,
I
What ES5 shims are you using that you can recommend?
Thanks,
Stoyan
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/jsmentors@jsmentors.com/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/jsmentors@googlegroups