]> gerrit.simantics Code Review - simantics/district.git/blob - es5-ext/object/validate-stringifiable.js
Hide "enabled" column for non-component type tech type tables
[simantics/district.git] / es5-ext / object / validate-stringifiable.js
1 'use strict';
2
3 module.exports = function (stringifiable) {
4         try {
5                 return String(stringifiable);
6         } catch (e) {
7                 throw new TypeError("Passed argument cannot be stringifed");
8         }
9 };