index.sjs 300 B

123456789101112
  1. var antmove_export = {};
  2. function isObj(x) {
  3. var type = typeof x;
  4. return x !== null && (type === 'object' || type === 'function');
  5. }
  6. antmove_export = function (option, valueKey) {
  7. return isObj(option) && option[valueKey] != null ? option[valueKey] : option;
  8. };
  9. export default antmove_export;