UNPKG

twreporter-react

Version:

React-Redux site for The Reporter Foundation in Taiwan

20 lines (18 loc) 434 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Noop function (do nothing) */ var noop = exports.noop = function noop() {}; /** * Excute callback if value is not undefined * @param {any} value [value to check] * @param {Function} callback [function to be excuted] */ var runIfSet = exports.runIfSet = function runIfSet(value, callback) { if (value !== undefined) { callback; } };