source: frontend/node_modules/@sinonjs/commons/lib/value-to-string.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 370 bytes
Line 
1"use strict";
2
3/**
4 * Returns a string representation of the value
5 *
6 * @param {*} value
7 * @returns {string}
8 */
9function valueToString(value) {
10 if (value && value.toString) {
11 // eslint-disable-next-line @sinonjs/no-prototype-methods/no-prototype-methods
12 return value.toString();
13 }
14 return String(value);
15}
16
17module.exports = valueToString;
Note: See TracBrowser for help on using the repository browser.