rk
21 小时以前 38d111cb6defedff3bf06314ca30d22a01faae22
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');
};