param queries export function lookForIdParameterAndReturnItsValue ( queries ) { let val = null ; for ( const query of queries ) { if ( query . includes ( "numbers=" ) || query . includes ( ".id=" ) ) { val = query . split ( "=" ) . pop ( ) ; } } return val ; } param val export function camelCaseOrSnakeCaseToDashedCase ( val ) { return val . replace ( / /g , "" ) . replace ( /([a-z][A-Z])/g , ( g , w ) => { return g [ 0 ] + "-" + g [ 1 ] . toLowerCase ( ) ; } ) . replace ( /_/g , "-" ) ; } param val export function dashedCaseToCamelCase ( val ) { return val . replace ( /-([a-z])/g , ( g ) => { return g [ 1 ] . toUpperCase ( ) ; } ) ; } param val export function dashedCaseToSnakeCase ( val ) { return val . replace ( /-/g , "_" ) ; }