jswalk
v2.6.0
Published
Directy import functions in your code and use them.
Downloads
456
Readme
JSWalk
This package provides snippet functions to ease regular functionalites.
How to use
Directy import functions in your code and use them.
Example code to convert to uppercase
import { CONVERT_UPPERCASE } from 'jswalk'
console.log(CONVERT_UPPERCASE('hello'))
Output
HELLO
List of Functions
FIND_VALUE_FROM_PERCENTAGE
This function calculates the value of percentage
eg: console.log(FIND_VALUE_FROM_PERCENTAGE(855.99, 10, 1))
output: 85.6Parameters:
param1: Total Value
param2: Percentage
param3: rounded count after decimalFIND_PERCENTAGE_FROM_VALUE
This function calculates the percentage from value
eg: console.log(FIND_PERCENTAGE_FROM_VALUE(855.99, 85.0651, 0))
output: 10Parameters:
param1: Total Value
param2: value
param3: rounded count after decimalFIND_TOTAL_FROM_VALUE_AND_PERCENTAGE
This function calculates the total from value and percentage
eg: console.log(FIND_TOTAL_FROM_VALUE_AND_PERCENTAGE(85, 10, 0))
output: 850Parameters:
param1: Total Value
param2: Percentage
param3: rounded count after decimalGENERATE_RANDOM_NUMBERS
This function generates the random number
eg: console.log(GENERATE_RANDOM_NUMBERS(4))
output: 5126Parameters:
param1: Total Number CountCONVERT_UPPERCASE
This function converts string to uppercase
eg: console.log(CONVERT_UPPERCASE("mr mark"))
output: MR MARKParameters:
param1: stringCONVERT_LOWERCASE
This function converts string to lowercase
eg: console.log(CONVERT_LOWERCASE("MR maRK"))
output: mr markParameters:
param1: stringCONVERT_CAPITALIZE
This function capitalize the string
eg: console.log(CONVERT_CAPITALIZE("mr mark")) output: Mr MarkParameters:
param1: string