UNPKG

data-provider-temporary

Version:

Library that helps with server-to-client synchronization of data

13 lines (10 loc) 260 B
"use strict"; var isCallable = require("./object/is-callable"); module.exports = function (value) { try { if (value && isCallable(value.toString)) return value.toString(); return String(value); } catch (e) { return "<non-stringifiable value>"; } };