package constant bindings for using applications
demo for using demo-front-app-react
npm i @front-app-react/constants
List of packages used:
- stringArgsFunc - Places values with variables in a text string
- objectByString - Get the value object with the name point
Places values with variables in a text string in the text string :
- Any value before return is known as a variable
- Any value after the last comma before return is known as JavaScript code
const str = "count,return 'The number of : ' + count";
const value = stringArgsFunc(str,["41"]);
const value = "The number of : 41";
arg1 | type string , text |
arg1 | type string array |
The output value is string
Get the value object with the name point
const object = {
signIn : {
username : "user username",
password : "user password",
}
};
const value = objectByString(object,"signIn.username");
const value = "user username";
arg1 | type object |
arg2 | type string, endpoint name obj with dot |
The output value is anything