@zokugun/lang
Provide basics methods for Array, Function, Number, Object and String
Compatibility
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* tested manually due to limitation of automated testing tools
Polyfill
Here an example how a polyfill is defined:
#[if(any(lt(chakra-v1.3), lt(ecma-v8), lt(jsc-v10), lt(monkey-v48), trident, lt(v8-v5.7)))]
impl String {
padStart(targetLength: Number, pad: String = ' '): String => pad.repeat(targetLength - this.length) + this
}
#[else]
disclose String {
padStart(targetLength: Number, pad: String = ' '): String
}
License
Copyright © 2016 Baptiste Augrain
Licensed under the MIT license.