版博士V2.0程序
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 

19 righe
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;