|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
292 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | var $TypeError = TypeError;
|
|---|
| 3 |
|
|---|
| 4 | module.exports = function (options) {
|
|---|
| 5 | var mode = options && options.mode;
|
|---|
| 6 | if (mode === undefined || mode === 'shortest' || mode === 'longest' || mode === 'strict') return mode || 'shortest';
|
|---|
| 7 | throw new $TypeError('Incorrect `mode` option');
|
|---|
| 8 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.