rk
4 天以前 fea8e0742ee241a94c5bbd4f452d6ad82cf4dd9c
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');
};