MrShi
7 天以前 1ab34d6347171b10acf78fcd3d6678eac0483bae
1
2
3
4
5
6
7
8
'use strict';
var $TypeError = TypeError;
 
module.exports = function (options) {
  var mode = options && options.mode;
  if (mode === undefined || mode === 'shortest' || mode === 'longest' || mode === 'strict') return mode || 'shortest';
  throw new $TypeError('Incorrect `mode` option');
};