MrShi
7 天以前 97158794d69fd2beee1bf27577aa7cadea8d847d
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');
};