版博士V2.0程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

19 строки
368 B

  1. 'use strict';
  2. var isPlainObject = require('is-plain-object').isPlainObject;
  3. function needsLookup(xtends) {
  4. if (typeof xtends === 'string' && xtends[0] === '.') {
  5. return true;
  6. }
  7. if (isPlainObject(xtends)) {
  8. // Objects always need lookup because they can't be used with `require()`
  9. return true;
  10. }
  11. return false;
  12. }
  13. module.exports = needsLookup;