Duffer Derek

Current Path : /var/www/sitesecurity.bitkit.dk/httpdocs/node_modules/mpd-parser/src/utils/
Upload File :
Current File : /var/www/sitesecurity.bitkit.dk/httpdocs/node_modules/mpd-parser/src/utils/string.js

/**
 * Converts the provided string that may contain a division operation to a number.
 *
 * @param {string} value - the provided string value
 *
 * @return {number} the parsed string value
 */
export const parseDivisionValue = (value) => {
  return parseFloat(value.split('/').reduce((prev, current) => prev / current));
};

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists