/** * Placeholder of argument * * @since 1.4.8 * @category String * @example * * __ * // => @argument/place */ export const __: "@argument/place"; /** * Addition logic in satisfying two argument * * @since 1.4.8 * @category Math * @param {number} value1 First number * @param {number=} value2 Second number * @returns {number|any} Returns number for added value * @example * * add(1, 1) * // => 2 */ export const add: typeof add_module; /** * In array, you need to check all value is true * * @since 1.4.8 * @category Condition * @param {...any?} arg List of value you need to check if all true * @returns {boolean} Returns true or false. * @example * * allValid(true, false) * // => false */ export const allValid: typeof allValid_module; /** * Append data for json or array * * @since 1.0.1 * @category Collection * @param {any} objectValue Value either json or array * @param {any} val Value for array index and json * @param {any=} key Json key * @returns {any} Returns the total. * @example * * append({'as':1}, 'as',2) * // => {'as':2} */ export const append: typeof append_module; /** * Array Concat * * @since 1.0.1 * @category Array * @param {...any?} arg Multiple arguments of array that you want to concat * @returns {any[]} Returns the array. * @example * * arrayConcat([1], 2) * // => [1,2] */ export const arrayConcat: typeof arrayConcat_module; /** * Repeat value in array * * @since 1.4.7 * @category Array * @param {any} value String you want to duplicate * @param {number} valueRepetion how many times you want to repeate * @returns {any[]} Return in string or number. * @example * * arrayRepeat("s",2 ) *=>['s','s'] */ export const arrayRepeat: typeof arrayRepeat_module; /** * Array sum of value * * @since 1.0.1 * @category Math * @param {number[]} arrayObject Array of number * @param {number=} delimeter decimal point and default value is 0 * @returns {number} Returns the total. * @example * * arraySum([1,2], 2) * // => 3.00 * arraySum([1,2]) * // => 3 */ export const arraySum: typeof arraySum_module; /** * Async replace regexp argument * * @since 1.3.1 * @category Function * @param {any} value String data * @param {any} search Regexp or string to look for match * @param {Function|String=} toReplace Replace value. * @returns {Promise} String in promise function * @example * * asyncReplace("asd",/s/g,"@") * // => Promise{: 'a@d'} */ export const asyncReplace: typeof asyncReplace_module; /** * Logic in convert string to compute, similar on how the calculator works * * @since 1.4.8 * @category Logic * @param {string} formula Formula you want to execution, it follows the idea of algebraic expression concept * @param {any=} args Object argument that to fill in variable define at algbraic expression * @returns {number|any} Returns the total. * @example * * calculate('1+1') *=> 2 * calculate('1+as',{as:1}) *=> 2 */ export const calculate: typeof calculate_module; /** * Append If Array does not Exist * * @since 1.0.1 * @category Array * @param {any} arrayObject Data is Array * @param {any=} value Value for array lookup * @returns {any[]} Return array. * @example * * appendIsArrayExist([312], [32]) * // => [312, 32] */ export const appendIsArrayExist: typeof appendIsArrayExist_module; /** * Cloning the data either in JSON or array that be used as different property * * @since 1.0.1 * @category Collection * @param {any} objectValue data you want to clone * @returns {any} Returns clone data * @example * * clone([1,2]) * // => [1,2] */ export const clone: typeof clone_module; /** * Counting the lenght in array, json or string * * @since 1.0.1 * @category Math * @param {any=} objectValue Json or array that you want to cound * @param {boolean=} json_is_empty_check If data is json, it will check its map data * @returns {number} Returns the total. * @example * * count([1,2]) * // => 2 * * count({"s" :1, "s2": 2}, true)// Counting the object inside, you must this to true * // => 2 */ export const count: typeof count_module; /** * Decrement value * * @since 1.4.8 * @category Math * @param {any} value Value you want to convert in array * @param {any=} default_value Value to want to start counting * @returns {number} Return in number. * @example * * dec(1) *=>0 */ export const dec: typeof dec_module; /** * Divide logic in satisfying two argument * * @since 1.4.8 * @category Math * @param {number} value1 First number * @param {number=} value2 Second number * @returns {number|any} Returns number for divided value * @example * * divide(1, 1) * // => 1 */ export const divide: typeof divide_module; /** * Returns the second argument if it is not null, `undefined` or `NaN`, otherwise returns the first argument. * * @since 1.4.87 * @category Logic * @param {any} defaultValue Any first value type * @param {any=} value2 Any first value type * @returns {any} Returns true or false. * @example * * defaultTo(1,2) * // => 2 */ export const defaultTo: typeof defaultTo_module; /** * Each or for loop function you are familiar with * * @since 1.0.1 * @category Collection * @param {any} objectValue Array or json. * @param {Function=} func Function to execute the loop with callback value,key (value,key) =>{}. * @returns {any} Array or json * @example * * each([1,2],(value,key,localGlobal)=>{ }) * */ export const each: typeof each_module; /** * To check if the two arguments are equal * * @since 1.4.8 * @category Relation * @param {any} value1 Any first value type * @param {any=} value2 Any second value type * @returns {boolean|any} Returns true or false. * @example * * equal('as', 'as') * // => true */ export const equal: typeof equal_module; /** * Ge the empty value of specify argument type * * @since 1.0.1 * @category Function * @param {any} value Any value type that you want an empty return * @returns {any} Returns empty either Json or Array * @example * * empty([]) * => [] */ export const empty: typeof empty_module; /** * Filter the data in for loop * * @since 1.0.1 * @category Collection * @param {any} objectValue The data either json or array * @param {Function=} func The second number in an addition. * @returns {any} Returns data either json or array. * @example * * filter([1,2,3,34],function(value, key){ return value%2 === 0 }) * * => [2, 34] */ export const filter: typeof filter_module; /** * Get the first value of array * * @since 1.0.1 * @category Any * @param {any} objectValue The data is array * @returns {any} Returns first value of `objectValue`. * @example * * first([1,2,3]) *=> 1 */ export const first: typeof first_module; /** * Flatten an array to a single level. * * @since 1.4.87 * @category Condition * @param {any} arg First number * @returns {any} Returns true or false. * @example * * flatten([1,2,3,4,[5,6],7]) * // => [1,2,3,4,5,6,7] */ export const flatten: typeof flatten_module; /** * Creates a new list out of the two supplied by pairing up equally-positioned items from both lists. The returned list is truncated to the length of the shorter of the two input lists * * @since 1.4.87 * @category Condition * @param {any} value First number * @param {number=} deepLimit First number * @returns {any} Returns array * @example * * fromPairs([[5,6],[7,2]]) * // => {5:6,7:2} */ export const fromPairs: typeof fromPairs_module; /** * Get Data in array or json using string to search the data either by its key or index * * @since 1.0.1 * @category Collection * @param {any=} objectValue Either Json or Array data. * @param {any=} split_str Search key or index. * @param {any=} isStrict to check if delimiter are match in counter, default value is false. * @returns {any} Returns the total. * @example * * getData({"s":1},"s") *=> 1 * @example * getData({"a":{"a":2},"b":{"a":3}},"a:a") *=> {a: 2} */ export const getData: typeof getData_module; /** * Get key Array or JSON * * @since 1.0.1 * @category String * @param {any} objectValue Either JSON or Array type * @returns {string} Returns it respective key or index * @example * * getKey({"s":1}) * => s */ export const getKey: typeof getKey_module; /** * Get type of the variable * * @since 1.0.1 * @category String * @param {...any} args Any data you want to check its property in multiple arguments * @returns {string|string[]} Get the property of variable * @example * * getTypeof([]) * => array * getTypeof([],{}) * => [array,json] */ export const getTypeof: typeof getTypeof_module; /** * Generate unique value id * * @since 1.0.1 * @category String * @param {any=} option type unique id * @returns {string} Get Unique Key. * @example * * getUniq() * => dur82ht126uqgszn62j04a */ export const getUniq: typeof getUniq_module; /** * Get value of json or array * * @since 1.0.1 * @category String * @param {any} objectValue Either JSON or Array * @returns {string} Returns it respective value * @example * * getValue({"s":1}) * => 1 */ export const getValue: typeof getValue_module; /** * To group the value of json or array * * @since 1.4.8 * @category Collection * @param {any} objectValue The data you want to map * @param {any=} func Callback function * @returns {any} Return map either JSON or Array * @example * * groupBy([1,2,3,4,5,6,7], function (value) { return value % 2}) *=> {0:[2,4,6], 1:[1,3,5,7]} */ export const groupBy: typeof groupBy_module; /** * To check if the two arguments are greater * * @since 1.4.8 * @category Relation * @param {any} value1 Any first value type * @param {any=} value2 Any second value type * @returns {boolean} Returns true or false. * @example * * gt(1, 2) * // => false */ export const gt: typeof gt_module; /** * To check if the two arguments are greater than to equal * * @since 1.4.8 * @category Relation * @param {any} value1 Any first value type * @param {any=} value2 Any second value type * @returns {boolean} Returns true or false. * @example * * gte(1, 2) * // => false */ export const gte: typeof gte_module; /** * Check if object has value or null or undefined * * @since 1.0.1 * @category Logic * @param {...any?} args Either JSON or Array * @returns {boolean} Returns true or false. * @example * * has({'as':1}, 'as') * // => true */ export const has: typeof has_module; /** * To Increment value * * @since 1.4.8 * @category Math * @param {any} value Value you want to convert in array * @param {any=} default_value Value to want to start counting * @returns {number} Return in number. * @example * * inc(1) *=>2 */ export const inc: typeof inc_module; /** * Index of array * * @since 1.0.1 * @category Array * @param {any} objectValue Array * @param {any} value Value in array * @returns {number} Returns the index. * @example * * indexOf([1,2], 1) * // => 0 */ export const indexOf: typeof indexOf_module; /** * Check if data is undefined * * @since 1.0.1 * @category Logic * @param {any} objectValue Either JSON or array * @param {any} value1 Check the key of value * @param {any=} value2 if value not exist, this value will be return * @returns {any} Returns filled value from its index * @example * * ifUndefined({'as':1}, 'as','as2') * // => 1 */ export const ifUndefined: typeof ifUndefined_module; /** * Check index of array is Exist or not * * @since 1.3.1 * @category Relation * @param {any[]} arrayObject Array * @param {any} value Value for array lookup * @returns {boolean} Return boolean. * @example * * indexOfExist([312], 32) * // => false */ export const indexOfExist: typeof indexOfExist_module; /** * Check index of array Not or exist * * @since 1.4.1 * @category Relation * @param {any[]} arrayObject Array * @param {any} value Value for array lookup * @returns {boolean} Return boolean. * @example * * indexOfNotExist([312], 32) * // => true */ export const indexOfNotExist: typeof indexOfNotExist_module; /** * Insert value in Json object or array * * @since 1.0.1 * @category Collection * @param {any} objectValue Either Json or array * @param {any} value Data you want to insert * @returns {null} Returns null * @example * var ss = {"A":1} * insert(ss,{'as':1}) * // => {A: 1, as: 1} */ export const insert: typeof insert_module; /** * Check if data is empty, null and undefined are now considered as empty * * @since 1.0.1 * @category Relation * @param {any} value JSON , Array and String * @returns {boolean} Returns true or false * @example * * isEmpty('') * // => true */ export const isEmpty: typeof isEmpty_module; /** * Looking the data in JSON and Array base on object value * * @since 1.0.1 * @category Relation * @param {any} whereValue Json or Array * @param {any} objectValue1 Json or Array for lookup to whereValue * @param {boolean=} isExist Default value is True * @returns {boolean|any} Returns the boolean if the has the value you are looking at. * @example * * isExact({"test": 11,"test2": 11}, {"test2": 11}) * // => true * * isExact({"s1":{"s2":2}},{"s1:s2":2}) * // => true */ export const isExact: typeof isExact_module; /** * Looking the data in JSON and Array base on object value with the help regexp * * @since 1.0.1 * @category Relation * @param {any} whereValue Either Json or array * @param {any} objectValue1 use as lookup data in data * @returns {boolean} Returns the boolean if the has the value with the help regexp you are looking at. * @example * * isExactbyRegExp({"test": 11,"test2": 11}, {"test2": /\d/g}) * // => false */ export const isExactbyRegExp: typeof isExactbyRegExp_module; /** * Is Json valid format * * @since 1.3.1 * @category Relation * @param {any} value Value you want to check JSON is Valid * @param {string=} valueType Get value type * @returns {any} Returns true or false if valid json format * @example * * isJson('{}' ) *=> true */ export const isJson: typeof isJson_module; /** * Convert Json To Array base on search value you provide,the search value will only look for value in json. * * @since 1.0.1 * @category Collection * @param {any} objectValue Json * @param {string} value Search key or index. * @returns {any} Returns Array * @example * * jsonToArray({"a":{"a":2},"b":{"a":3}},"a") * => [2, 3] */ export const jsonToArray: typeof jsonToArray_module; /** * Get the last value of array or JSON * * @since 1.0.1 * @category Relation * @param {any} objectValue The data is array * @returns {any} Returns last value of `objectValue`. * @example * * last([1,2] ) *=>2 */ export const last: typeof last_module; /** * Get the last index Of array * * @since 1.0.1 * @category Relation * @param {any} objectValue Array * @param {any} value Value you are searching for * @returns {any} Return get the index or array * @example * * lastIndexOf([1,2], 1) * // => 0 */ export const lastIndexOf: typeof lastIndexOf_module; /** * Searching the data either in array or json object to get similar value of data * * @since 1.0.1 * @category Seq * @param {any} objectValue Json or Array * @param {any} objectValueWhere Data you want to search that is identical to key of object or array * @param {any=} func Function * @returns {any} Return either Json to Array. * @example * * like({"s1":1,"s2":1},{"s1":1}) *=>{s1: 1, s2: 1} */ export const like: typeof like_module; /** * Specify the limit, similar in splice bt the return was object to ensure the order are not shuffle and key is number format * * @since 1.0.1 * @category Seq * @param {any} objectValue Data must be array * @param {number} minValue Minimum value * @param {number=} maxValue Maximum value * @param {Function=} func Callback function * @returns {any} Returns the object. * @example * * limit([1,2],1,2 ) *=>{'1':2} */ export const limit: typeof limit_module; /** * To check if the two arguments are less than to equal * * @since 1.4.8 * @category Boolean * @param {any} value1 Any first value type * @param {any=} value2 Any second value type * @returns {boolean|any} Returns true or false. * @example * * lte(1, 2) * // => true */ export const lte: typeof lte_module; /** * To map the value of json or array * * @since 1.0.1 * @category Collection * @param {any} objectValue The data you want to map * @param {any=} func Callback function * @returns {any} Return map either JSON or Array * @example * * map([1,2],function(value) { return value+2 } ) *=> [3, 4] */ export const map: typeof map_module; /** * A Function to map the data either an array or an object using getData function. * * @since 1.3.1 * @category Collection * @param {any[]} objectValue Json in array format * @param {string} valueFormat Key look up format * @returns {any[]} Return array or object. * @example * * mapGetData([{"Asd":1}],"Asd") *=>[1] */ export const mapGetData: typeof mapGetData_module; /** * To check if the two arguments are less * * @since 1.4.8 * @category Boolean * @param {any} value1 Any first value type * @param {any=} value2 Any second value type * @returns {boolean|any} Returns true or false. * @example * * lt(1, 2) * // => true */ export const lt: typeof lt_module; /** * Merging two json/array object with the help of where clause * * @since 1.4.8.1 * @category Collection * @param {any} objectValue The data you want to map * @param {any} mergeValue data that you want to merge * @param {any} whereValue where clause for you to merge the two set of data, where clause at `$1` for `objectValue` and `$2` for `mergeValue` * @returns {any} Return map either JSON or Array * @example * * mergeInWhere([{"s":23,"id":1}],[{"id":1,"title":"test only"}],{"$1.id":"$2.id","$2.title":"test only"}) *=> [{ "id":1, "s":23, "title":"test only"}] */ export const mergeInWhere: typeof mergeInWhere_module; /** * Merging two json object * * @since 1.4.8.1 * @category Collection * @param {any} objectValue The data you want to map * @param {any} mergeValue data that you want to merge or replace from `objectValue` * @returns {any} Return map either JSON or Array * @example * * mergeWithKey({"s":1},{"ss":1}) *=> {"s":1,"ss":1} */ export const mergeWithKey: typeof mergeWithKey_module; /** * Multiply logic in satisfying two argument * * @since 1.4.8 * @category Math * @param {number} value1 First number * @param {number=} value2 Second number * @returns {number|any} Returns number for mutiplied value * @example * * multiply(1, 1) * // => 1 */ export const multiply: typeof multiply_module; /** * To check if its not equal * * @since 1.4.8 * @category Relation * @param {any} value1 Any value type * @param {any} value2 Any value type * @returns {boolean} Returns true or false. * @example * * noteq('as', 'as') * // => false */ export const noteq: typeof noteq_module; /** * On delay * * @since 1.4.1 * @category Function * @param {any} func a Callback function * @param {number=} wait timer for delay * @param {object=} option option for delay * @returns {object} Returns object. * @example * * onDelay(()=>{}) *=>'11' */ export const onDelay: typeof onDelay_module; /** * On sequence * * @since 1.4.1 * @category Function * @param {any} func a Callback function * @param {number=} wait timer for delay * @param {object=} option option for delay * @returns {object} Returns object. * @example * * onSequence(()=>{}) *=>'11' */ export const onSequence: typeof onSequence_module; /** * On wait * * @since 1.4.1 * @category Function * @param {any} func a Callback function * @param {number=} wait timer for delay * @returns {object} Returns the total. * @example * * onWait(()=>{}) *=>'11' */ export const onWait: typeof onWait_module; /** * String escape qoutes * * @since 1.4.872 * @category Collection * @param {any} str Object you want to convert to JSON string * @returns {string} Return JSON string * @example * * escapeQuotesStr("'" ) *=>"\\'" */ export const parseJson: typeof parseJson_module; /** * String escape qoutes * * @since 1.4.872 * @category Collection * @param {any} str Object you want to convert to JSON string * @returns {string} Return JSON string * @example * * escapeQuotesStr("'" ) *=>"\\'" */ export const parseString: typeof parseString_module; /** * Perform left to right function composition. first arguemnt will be default value * * @since 1.4.86 * @category Function * @param {...any?} arg Arguments in function * @returns {any} Returns any value. * @example * * pipe(Math.pow,add(1))(11,2) * // => 122 */ export const pipe: typeof pipe_module; /** * To create single random value from array * * @since 1.0.1 * @category Array * @param {any} valueArray Array * @param {number} minValue Minimum value base on index * @param {number} maxValue Max value base on index * @returns {string|number} Return string or number in array * @example * * random([10,20,30],0,3 ) *=>'[20]' */ export const random: typeof random_module; /** * Generate array of data from specific limit or where the index to start * * @since 1.0.1 * @category Array * @param {number} maxValue Max value you to generate in array, default value 1 * @param {number=} minValue Min value you to generate in array , default value 10 * @param {string|number=} step Specify the logic of increment or decrement * @returns {any[]} Return in array. * @example * * range(10) *=>[1,2,3,4,5,6,7,8,9,10] */ export const range: typeof range_module; /** * Reduce function * * @since 1.4.8 * @category Function * @param {any} defaultValue Starting value that you want to use as reference * @param {any[]} listData Array value that you want to map * @param {any} func Callback function for how to map the data * @returns {any} Return redue value * @example * * reduce(2,[1,2],(total,value)=>total+value) * // => 5 */ export const reduce: typeof reduce_module; /** * Remove data in either JSON or Array using key or woth value, a revise logic * * @since 1.4.85 * @category Collection * @param {any} objectValue Json or array * @param {any} value if objectValue, json is must be object or array index you want to remove * @param {number=} value2 Last row in index * @returns {any[]} Returns the total. * @example * * remove([1,2,3],0 ) *=>[2, 3] */ export const remove: typeof remove_module; /** * Regex Count Group number * * @since 1.4.7 * @category Function * @param {any} value Value you want to convert in array * @returns {number} Return in array. * @example * * regexCountGroup('/(abs|scs)@0@@1@/') *=>[1] */ export const regexCountGroup: typeof regexCountGroup_module; /** * Remove data in either JSON or Array using key or woth value, a revise logic * * @since 1.4.85 * @category Collection * @param {any} objectValue Json or array * @param {any} value if objectValue, json is must be object or array index you want to remove * @returns {any[]} Returns the total. * @example * * removeFromKey([1,2,3],0 ) *=>[2, 3] */ export const removeFromKey: typeof removeFromKey_module; /** * Repeat string value * * @since 1.0.1 * @category String * @param {string=} value String you want to duplicate * @param {number=} valueRepetion how many times you want to repeate * @returns {string} Return in string or number. * @example * * repeat("s",1 ) *=>'ss' */ export const repeat: typeof repeat_module; /** * Random Decimal * * @since 1.0.1 * @category Math * @param {number} value Int or Double value type * @param {number=} maxValue limit decimal * @returns {number} Returns the total. * @example * * roundDecimal(11.1111111,3 ) *=>11.11 */ export const roundDecimal: typeof roundDecimal_module; /** * Selecting multiple search data using `getData` logic in the loop * * @since 1.4.8.1 * @category Collection * @param {any} objectValue The data you want to map * @param {any} whereValue where clause for you to merge the two set of data * @returns {any} Return map either JSON or Array * @example * * selectInData({"s":1},{"ss":"s"}) *=> {"ss":1} */ export const selectInData: typeof selectInData_module; /** * Set Data in array or json using string to search the data either by its key or index, given a value to update the data. * * @since 1.4.87 * @category Collection * @param {any=} objectValue Either Json or Array data. * @param {any=} split_str Search key or index. * @param {any=} updateValue Value to update the data. * @returns {any} Returns the total. * @example * * setData({"s":1},"s",2) *=> 2 */ export const setData: typeof setData_module; /** * Shuffle data in array * * @since 1.0.1 * @update 1.4.86 * @category Array * @param {any[]} objectValue Array argmuments that you want to shuffle * @returns {any[]} Shuffle return value in array * @example * * shuffle([1,2,3]) *=>[2,3,1] */ export const shuffle: typeof shuffle_module; /** * To return the value selected either start or start to end index * * @since 1.3.1 * @category Array * @param {any} objectValue Array * @param {number=} min Minumum of 2 * @param {number=} max Maximum base on array count * @returns {any[]} Returns the total. * @example * * arraySlice([1,2],1) * // => [2] * * arraySlice([1,2,3,4],2,4) * // => [3, 4] */ export const arraySlice: typeof arraySlice_module; /** * In array, you need to check all value atleast one true * * @since 1.4.8 * @category Condition * @param {...any?} arg List of value you need to check if some are true * @returns {boolean} Returns true or false. * @example * * someValid(true, false) * // => true */ export const someValid: typeof someValid_module; /** * Sort array * * @since 1.0.1 * @category Array * @param {any[]} objectValue List of array you want to sort * @param {boolean=} order True for ascend then false for descend * @param {string=} type Callback function or sort type [any, lowercase, uppercase] * @returns {any[]} Returns the total. * @example * * sort([2,3,1]) *=>[1,2,3] */ export const sort: typeof sort_module; /** * Sort By function is used to sort an array of values. * * @since 1.4.87 * @category Array * @param {any[]} objectValue List of array you want to sort * @param {Function} func Callback function or sort type * @returns {any[]} Returns the total. * @example * * sort([2,3,1]) *=>[1,2,3] */ export const sortBy: typeof sortBy_module; /** * String Camel case * * @since 1.3.1 * @category String * @param {string} value String data * @returns {string} Returns camel sting data * @example * * stringCamelCase('the fish is goad with goat-1ss') *=> 'theFishIsGoadWithGoat1ss' */ export const stringCamelCase: typeof stringCamelCase_module; /** * String Escape * * @since 1.3.1 * @category String * @param {string} value String data * @param {string=} type Configuration * @returns {string} Returns escape string * @example * * stringEscape("yahii & adad ^ss") *=> 'yahii & adad ˆss' */ export const stringEscape: typeof stringEscape_module; /** * String Capitalize * * @since 1.3.1 * @category String * @param {string} value String data * @param {string=} option Type of captalize optional * @returns {string} Returns Capitalize sting data * @example * * stringCapitalize('the fish is goad with goat-1ss','all') *=> 'The Fish Is Goad With Goat-1ss' * stringCapitalize('the fish is goad with goat-1ss') *=> 'The fish is goad with goat-1ss' */ export const stringCapitalize: typeof stringCapitalize_module; /** * String Kebab case * * @since 1.3.1 * @category String * @param {string} value String data * @returns {string} Returns Kebab sting data * @example * * stringKebabCase('the fish is goad with goat-1ss') *=> 'the-fish-is-goad-with-goat-1ss' */ export const stringKebabCase: typeof stringKebabCase_module; /** * String Snake case * * @since 1.3.1 * @category String * @param {string} value String data * @returns {string} Returns Snake sting data * @example * * stringSnakeCase('the fish is goad with goat-1ss') *=> 'the_fish_is_goad_with_goat_1ss' */ export const stringSnakeCase: typeof stringSnakeCase_module; /** * String Substr * * @since 1.4.5 * @category String * @param {string} value String data * @param {number} minValue minimum value * @param {number=} maxValue maximum value * @returns {string} Returns camel sting data * @example * * stringSubs('The fish is goad with Goat-1ss') *=> 'the fish is goad with goat-1ss */ export const stringSubs: typeof stringSubs_module; /** * String Unescape * * @since 1.3.1 * @category String * @param {string} value String data * @param {string=} type Configuration * @returns {string} Returns unescape string * @example * * stringUnEscape('yahii & adad ˆss') *=>"yahii & adad ^ss" */ export const stringUnEscape: typeof stringUnEscape_module; /** * String Upper case case * * @since 1.4.5 * @category String * @param {string} value String data * @returns {string} Returns camel sting data * @example * * stringUpperCase('The fish is goad with Goat-1ss') *=> 'THE FISH IS GOAD WITH GOAT-1SS' */ export const stringUpperCase: typeof stringUpperCase_module; /** * Subtract logic in satisfying two argument * * @since 1.4.8 * @category Math * @param {number} value1 First number * @param {number=} value2 Second number * @returns {number|any} Returns number for subtracted value * @example * * subtract(1, 1) * // => 0 */ export const subtract: typeof subtract_module; /** * Swapping the value either string or array in there specific position * * @since 1.4.86 * @category Collection * @param {number} firstValue The data you want to map * @param {number} secondValue data that you want to merge * @param {any[]|string} listValue Passing value either array or string * @returns {any} Return map either JSON or Array * @example * * swap(0, 2, 'foo') *=> off */ export const swap: typeof swap_module; /** * Get the value from index zero until the last value * * @since 1.4.86 * @category Math * @param {number} value First number, our first index will start at zero * @param {any[]|string} valueList Second number * @returns {any} Returns true or false. * @example * * take(1, [1]) * // => 1 */ export const take: typeof take_module; /** * Template value * * @since 1.0.1 * @category String * @param {string} templateString Template string * @param {any} data Parameter to replace * @param {any=} option The second number in an addition. * @returns {string} Returns the total. * @example * * templateValue("", {"test": 11}) *=>'11' */ export const templateValue: typeof templateValue_module; /** * To convert any data type(except the data has been already been an array) into array type * * @since 1.0.1 * @category Array * @param {any} value Value you want to convert in array * @returns {any[]} Return in array. * @example * * toArray(1) *=>[1] */ export const toArray: typeof toArray_module; /** * To extract string invalid boolean and convert to boolean * * @since 1.4.872 * @category Boolean * @param {any} value Value you to convert in boolean * @returns {boolean} Return in boolean. * @example * * toBoolean("true") *=>true */ export const toBoolean: typeof toBoolean_module; /** * To extract number in string and convert to double, it will also remove all none numeric * * @since 1.0.1 * @category Number * @param {any} value Value you to convert in double * @param {any=} config Option you want to set in this function. * @returns {number} Return in double. * @example * * toDouble("100.1d1") *=>100.11 */ export const toDouble: typeof toDouble_module; /** * To extract number in string and convert to , it will also remove all none numeric * * @since 1.0.1 * @category Number * @param {any} value Value you to convert in integer * @returns {number} Return in integer. * @example * * toInteger("11d") *=>11 */ export const toInteger: typeof toInteger_module; /** * Converts an object into an array of key-value pairs. if the value is nested object, it will be converted to an array of key-value pairs recursively. * * @since 1.4.87 * @category Collection * @param {any} value First number * @returns {any[]} Returns array * @example * * toPairs({"s":1,"ss":{"a":2}}) * // => [["s",1],["ss",["a",2]]] */ export const toPairs: typeof toPairs_module; /** * To String * * @since 1.4.5 * @category String * @param {any=} value Value you to convert in double * @returns {string} Return in double. * @example * * toString(1) *=> '1' */ export const toString: typeof toString_module; /** * String trim in removing whitespace both start and end * * @since 1.4.8 * @category String * @param {string} value String data that you want to trim * @param {any=} remove_value Replace preferred value to remove * @returns {string} Returns trim data * @example * * trim(' The fish is goad with Goat-1ss ') *=> 'The fish is goad with Goat-1ss' */ export const trim: typeof trim_module; /** * String trim at the end only * * @since 1.4.86 * @category String * @param {string} value String data that you want to trim * @param {any=} remove_value Replace preferred value to remove * @returns {string} Returns trim data in end of string * @example * * trimEnd(' The fish is goad with Goat-1ss ') *=> ' The fish is goad with Goat-1ss' */ export const trimEnd: typeof trimEnd_module; /** * String trim at the start only * * @since 1.4.86 * @category String * @param {string} value String data that you want to trim * @param {any=} remove_value Replace preferred value to remove * @returns {string} Returns trim data in start of string * @example * * trimStart(' The fish is goad with Goat-1ss ') *=> 'The fish is goad with Goat-1ss ' */ export const trimStart: typeof trimStart_module; /** * To create a new array that is the union of all the arrays passed as arguments. The union will contain only unique values. * * @since 1.4.7 * @category Collection * @param {...any?} arg First number * @returns {any[]} Returns true or false. * @example * * union([1,2,3,4,7],[1,2,3,4,5,6,7,8]) * // => [1, 2, 3, 4, 7, 5, 6, 8] */ export const union: typeof union_module; /** * Get only the unique data from array * * @since 1.4.1 * @category Array * @param {any} value Value you want to convert in array * @returns {any[]} Return in array. * @example * * unique([1,2,3,2,3]) *=>[1,2,3] */ export const unique: typeof unique_module; /** * Var extend was use in replacing from `objectValueReplace` if not existed at objectValue * * @since 1.0.1 * @category Collection * @param {object} objectValue Json or Array that this serve as your default value if `objectValueReplace` does not exist * @param {object} objectValueReplace Json, Array or Object that you want to assign to `objectValue` * @returns {any} Return Json or Array or Object. * @example * * varExtend({"s1":1},{"s1":2}) *=>{"s1":2} */ export const varExtend: typeof varExtend_module; /** * Get the value in array the value in json given the search value was in json * * @since 1.0.1 * @category Collection * @param {any} objectValue Json to Array * @param {any} objectValueWhere Data you want to search in key * @param {Function=} func Function * @returns {any} Return either Json to Array. * @example * * where({"s1":1,"s2":1},{"s1":1}) *=>{"s1":1,"s2":1} * where([{"s1":{"s2":2}},{"s1":{"s2":3}}],{"s1.s2":2}) *=>[{"s1":{"s2":2}}] */ export const where: typeof where_module; /** * Get the value in array the value in json that should not in search value of json * * @since 1.0.1 * @category Collection * @param {any} objectValue Json to Array * @param {any} objectValueWhere Data that you exlude in search * @param {Function=} func Function * @returns {any} Return either Json to Array. * @example * * whereNot([{"s1":1,"s2":1},{"s1":2,"s2":2}],{"s1":1}) *=>[{"s1":2,"s2":2}] * whereNot([{"s1":{"s2":2}},{"s1":{"s2":3}}],{"s1.s2":2}) *=>[{"s1":{"s2":3}}] */ export const whereNot: typeof whereNot_module; /** * Get the type if arguments * * @since 1.4.7 * @category Collection * @param {any} value Pass any value to check its type * @returns {boolean} Return either Json to Array. * @example * * isArguments() *=> true */ export function isArguments(value: any): boolean; /** * Get the type if array * * @since 1.4.7 * @category Collection * @param {any} value Pass any value to check its type * @returns {boolean} Return either Json to Array. * @example * * isArray([]) *=> true */ export function isArray(value: any): boolean; /** * Get the type if boolean * * @since 1.4.7 * @category Collection * @param {any} value Pass any value to check its type * @returns {boolean} Return either Json to Array. * @example * * isBoolean(true) *=> true */ export function isBoolean(value: any): boolean; /** * Get the type if date * * @since 1.4.7 * @category Collection * @param {any} value Pass any value to check its type * @returns {boolean} Return either Json to Array. * @example * * isDate(new Date()) *=> true */ export function isDate(value: any): boolean; /** * Get the type if error * * @since 1.4.7 * @category Collection * @param {any} value Pass any value to check its type * @returns {boolean} Return either Json to Array. * @example * * isError(new Error()) *=> true */ export function isError(value: any): boolean; /** * Get the type if function * * @since 1.4.7 * @category Collection * @param {any} value Pass any value to check its type * @returns {boolean} Return either Json to Array. * @example * * isFunction() *=> true */ export function isFunction(value: any): boolean; /** * Get the type if null * * @since 1.4.7 * @category Collection * @param {any} value Pass any value to check its type * @returns {boolean} Return either Json to Array. * @example * * isNull(null) *=> true */ export function isNull(value: any): boolean; /** * Get the type if number * * @since 1.4.7 * @category Collection * @param {any} value Pass any value to check its type * @returns {boolean} Return either Json to Array. * @example * * isNumber(1) *=> true */ export function isNumber(value: any): boolean; /** * Get the type if object * * @since 1.4.7 * @category Collection * @param {any} value Pass any value to check its type * @returns {boolean} Return either Json to Array. * @example * * isObject({}) *=> true */ export function isObject(value: any): boolean; /** * Get the type if promise * * @since 1.4.7 * @category Collection * @param {any} value Pass any value to check its type * @returns {boolean} Return either Json to Array. * @example * * isPromise() *=> true */ export function isPromise(value: any): boolean; /** * Get the type if regexp * * @since 1.4.7 * @category Collection * @param {any} value Pass any value to check its type * @returns {boolean} Return either Json to Array. * @example * * isRegexp(/(1)/g) *=> true */ export function isRegexp(value: any): boolean; /** * Get the type if string * * @since 1.4.7 * @category Collection * @param {any} value Pass any value to check its type * @returns {boolean} Return either Json to Array. * @example * * isString('string') *=> true */ export function isString(value: any): boolean; /** * Get the type if uint16Array * * @since 1.4.7 * @category Collection * @param {any} value Pass any value to check its type * @returns {boolean} Return either Json to Array. * @example * * isUint16Array() *=> true */ export function isUint16Array(value: any): boolean; /** * Get the type if uint8Array * * @since 1.4.7 * @category Collection * @param {any} value Pass any value to check its type * @returns {boolean} Return either Json to Array. * @example * * isUint8Array() *=> true */ export function isUint8Array(value: any): boolean; /** * Get the type if undefined * * @since 1.4.7 * @category Collection * @param {any} value Pass any value to check its type * @returns {boolean} Return either Json to Array. * @example * * isUndefined(undefined) *=> true */ export function isUndefined(value: any): boolean; /** * Get the value in array or json given in only one return the search value was in json * * @since 1.4.8.7 * @category Collection * @param {any} objectValue Json to Array * @param {any} objectValueWhere Data you want to search in key * @param {Function=} func Function * @returns {any} Return either Json to Array. * @example * * whereOnce({"s1":1,"s2":1},{"s1":1}) *=>{"s1":1,"s2":1} * whereOnce([{"s1":{"s2":2}},{"s1":{"s2":3}}],{"s1.s2":2}) *=>[{"s1":{"s2":2}}] */ export const whereOnce: typeof whereOnce_module; /** * Creates a new list out of the two supplied by pairing up equally-positioned items from both lists. The returned list is truncated to the length of the shorter of the two input lists * * @since 1.4.86 * @category Array * @param {...any?} arg First number * @returns {any} Returns true or false. * @example * * zip([1],[2],[3]) * // => [[1,2,3]] */ export const zip: typeof zip_module; /** * String Lower case case * * @since 1.4.5 * @category String * @param {string} value String data * @returns {string} Returns camel sting data * @example * * stringLowerCase('The fish is goad with Goat-1ss') *=> 'the fish is goad with goat-1ss */ export const stringLowerCase: typeof stringLowerCase_module; import { default as add_module } from './src/function/add.js'; import { default as allValid_module } from './src/function/allValid.js'; import { default as append_module } from './src/function/append.js'; import { default as arrayConcat_module } from './src/function/arrayConcat.js'; import { default as arrayRepeat_module } from './src/function/arrayRepeat.js'; import { default as arraySum_module } from './src/function/arraySum.js'; import { default as asyncReplace_module } from './src/function/asyncReplace.js'; import { default as calculate_module } from './src/function/calculate.js'; import { default as appendIsArrayExist_module } from './src/function/appendIsArrayExist.js'; import { default as clone_module } from './src/function/clone.js'; import { default as count_module } from './src/function/count.js'; import { default as dec_module } from './src/function/dec.js'; import { default as divide_module } from './src/function/divide.js'; import { default as defaultTo_module } from './src/function/defaultTo.js'; import { default as each_module } from './src/function/each.js'; import { default as equal_module } from './src/function/equal.js'; import { default as empty_module } from './src/function/empty.js'; import { default as filter_module } from './src/function/filter.js'; import { default as first_module } from './src/function/first.js'; import { default as flatten_module } from './src/function/flatten.js'; import { default as fromPairs_module } from './src/function/fromPairs.js'; import { default as getData_module } from './src/function/getData.js'; import { default as getKey_module } from './src/function/getKey.js'; import { default as getTypeof_module } from './src/function/getTypeof.js'; import { default as getUniq_module } from './src/function/getUniq.js'; import { default as getValue_module } from './src/function/getValue.js'; import { default as groupBy_module } from './src/function/groupBy.js'; import { default as gt_module } from './src/function/gt.js'; import { default as gte_module } from './src/function/gte.js'; import { default as has_module } from './src/function/has.js'; import { default as inc_module } from './src/function/inc.js'; import { default as indexOf_module } from './src/function/indexOf.js'; import { default as ifUndefined_module } from './src/function/ifUndefined.js'; import { default as indexOfExist_module } from './src/function/indexOfExist.js'; import { default as indexOfNotExist_module } from './src/function/indexOfNotExist.js'; import { default as insert_module } from './src/function/insert.js'; import { default as isEmpty_module } from './src/function/isEmpty.js'; import { default as isExact_module } from './src/function/isExact.js'; import { default as isExactbyRegExp_module } from './src/function/isExactbyRegExp.js'; import { default as isJson_module } from './src/function/isJson.js'; import { default as jsonToArray_module } from './src/function/jsonToArray.js'; import { default as last_module } from './src/function/last.js'; import { default as lastIndexOf_module } from './src/function/lastIndexOf.js'; import { default as like_module } from './src/function/like.js'; import { default as limit_module } from './src/function/limit.js'; import { default as lte_module } from './src/function/lte.js'; import { default as map_module } from './src/function/map.js'; import { default as mapGetData_module } from './src/function/mapGetData.js'; import { default as lt_module } from './src/function/lt.js'; import { default as mergeInWhere_module } from './src/function/mergeInWhere.js'; import { default as mergeWithKey_module } from './src/function/mergeWithKey.js'; import { default as multiply_module } from './src/function/multiply.js'; import { default as noteq_module } from './src/function/noteq.js'; import { default as onDelay_module } from './src/function/onDelay.js'; import { default as onSequence_module } from './src/function/onSequence.js'; import { default as onWait_module } from './src/function/onWait.js'; import { default as parseJson_module } from './src/function/parseJson.js'; import { default as parseString_module } from './src/function/parseString.js'; import { default as pipe_module } from './src/function/pipe.js'; import { default as random_module } from './src/function/random.js'; import { default as range_module } from './src/function/range.js'; import { default as reduce_module } from './src/function/reduce.js'; import { default as remove_module } from './src/function/remove.js'; import { default as regexCountGroup_module } from './src/function/regexCountGroup.js'; import { default as removeFromKey_module } from './src/function/removeFromKey.js'; import { default as repeat_module } from './src/function/repeat.js'; import { default as roundDecimal_module } from './src/function/roundDecimal.js'; import { default as selectInData_module } from './src/function/selectInData.js'; import { default as setData_module } from './src/function/setData.js'; import { default as shuffle_module } from './src/function/shuffle.js'; import { default as arraySlice_module } from './src/function/arraySlice.js'; import { default as someValid_module } from './src/function/someValid.js'; import { default as sort_module } from './src/function/sort.js'; import { default as sortBy_module } from './src/function/sortBy.js'; import { default as stringCamelCase_module } from './src/function/stringCamelCase.js'; import { default as stringEscape_module } from './src/function/stringEscape.js'; import { default as stringCapitalize_module } from './src/function/stringCapitalize.js'; import { default as stringKebabCase_module } from './src/function/stringKebabCase.js'; import { default as stringSnakeCase_module } from './src/function/stringSnakeCase.js'; import { default as stringSubs_module } from './src/function/stringSubs.js'; import { default as stringUnEscape_module } from './src/function/stringUnEscape.js'; import { default as stringUpperCase_module } from './src/function/stringUpperCase.js'; import { default as subtract_module } from './src/function/subtract.js'; import { default as swap_module } from './src/function/swap.js'; import { default as take_module } from './src/function/take.js'; import { default as templateValue_module } from './src/function/templateValue.js'; import { default as toArray_module } from './src/function/toArray.js'; import { default as toBoolean_module } from './src/function/toBoolean.js'; import { default as toDouble_module } from './src/function/toDouble.js'; import { default as toInteger_module } from './src/function/toInteger.js'; import { default as toPairs_module } from './src/function/toPairs.js'; import { default as toString_module } from './src/function/toString.js'; import { default as trim_module } from './src/function/trim.js'; import { default as trimEnd_module } from './src/function/trimEnd.js'; import { default as trimStart_module } from './src/function/trimStart.js'; import { default as union_module } from './src/function/union.js'; import { default as unique_module } from './src/function/unique.js'; import { default as varExtend_module } from './src/function/varExtend.js'; import { default as where_module } from './src/function/where.js'; import { default as whereNot_module } from './src/function/whereNot.js'; import { default as whereOnce_module } from './src/function/whereOnce.js'; import { default as zip_module } from './src/function/zip.js'; import { default as stringLowerCase_module } from './src/function/stringLowerCase.js';