|
@@ -8,7 +8,7 @@ import {createMatrixColumnsFun, createMatrixLinesFun,
|
|
import {createCastBoolFun, createCastIntFun,
|
|
import {createCastBoolFun, createCastIntFun,
|
|
createCastRealFun, createCastStringFun,
|
|
createCastRealFun, createCastStringFun,
|
|
createIsBoolFun, createIsIntFun,
|
|
createIsBoolFun, createIsIntFun,
|
|
- createIsRealFun} from './lib/lang';
|
|
|
|
|
|
+ createIsRealFun, createCastCharFun} from './lib/lang';
|
|
import {createAbsFun, createCosFun,
|
|
import {createAbsFun, createCosFun,
|
|
createInvertFun, createLogFun,
|
|
createInvertFun, createLogFun,
|
|
createMaxFun, createMinFun,
|
|
createMaxFun, createMinFun,
|
|
@@ -28,7 +28,7 @@ function valueToKey (value, object) {
|
|
}
|
|
}
|
|
|
|
|
|
function concatObjects (...objs) {
|
|
function concatObjects (...objs) {
|
|
- let result = {};
|
|
|
|
|
|
+ const result = {};
|
|
for (let i = 0; i < objs.length; i++) {
|
|
for (let i = 0; i < objs.length; i++) {
|
|
const obj = objs[i];
|
|
const obj = objs[i];
|
|
for(const key in obj) {
|
|
for(const key in obj) {
|
|
@@ -78,7 +78,8 @@ const libsObject = {
|
|
$castReal: createCastRealFun(),
|
|
$castReal: createCastRealFun(),
|
|
$castInt: createCastIntFun(),
|
|
$castInt: createCastIntFun(),
|
|
$castBool: createCastBoolFun(),
|
|
$castBool: createCastBoolFun(),
|
|
- $castString: createCastStringFun()
|
|
|
|
|
|
+ $castString: createCastStringFun(),
|
|
|
|
+ $castChar: createCastCharFun()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|