]> gerrit.simantics Code Review - simantics/district.git/blob - sign/shim.js
Hide "enabled" column for non-component type tech type tables
[simantics/district.git] / sign / shim.js
1 'use strict';
2
3 module.exports = function (value) {
4         value = Number(value);
5         if (isNaN(value) || (value === 0)) return value;
6         return (value > 0) ? 1 : -1;
7 };