@kubashh/easyscript
v0.2.1
Published
EasyScript easier JavaScript
Maintainers
Readme
EasyScript easier JavaScript
Features
Changed words
console.log() => print()
console.error() => err() | Err() (quit program after display message)
function => fn
Reflect.deleteProperty => Object.deleteProperty (no need for use Reflect)
Mathematic comparison
Strictness
10 == `10` // true, (bad behaviour), because first implementation of JS
false != true // true
10 === `10` // false
false !== true // true10 == `10` // false
false != true // truefor loop
for arrays / objects / strings
const arr = [1, 2, 3, 4]
for(arr) |element, index| {
print(index, element)
}
for(arr) |element| {
print(element)
}
for(arr) |_, index| {
print(index)
}for range
for(0..10) |i| {
print(i)
}Arays/Strings
Length
arr.len => arr.length
str.len => str.length
