Advertisement
Jawad_Khan

cjs - replace USD or $ in the value

Jul 21st, 2024
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function(){
  2.     var initialValue = {{dlv - ecommerrce.value}};
  3.     if (initialValue.includes("USD")) {
  4.         return initialValue.replace("USD","");
  5.     }
  6.     else if (initialValue.includes("$")) {
  7.         return initialValue.replace("$","");
  8.     }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement