|
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:
338 bytes
|
| Rev | Line | |
|---|
| [9af201e] | 1 | 'use strict'
|
|---|
| 2 |
|
|---|
| 3 | // parse out just the options we care about
|
|---|
| 4 | const looseOption = Object.freeze({ loose: true })
|
|---|
| 5 | const emptyOpts = Object.freeze({ })
|
|---|
| 6 | const parseOptions = options => {
|
|---|
| 7 | if (!options) {
|
|---|
| 8 | return emptyOpts
|
|---|
| 9 | }
|
|---|
| 10 |
|
|---|
| 11 | if (typeof options !== 'object') {
|
|---|
| 12 | return looseOption
|
|---|
| 13 | }
|
|---|
| 14 |
|
|---|
| 15 | return options
|
|---|
| 16 | }
|
|---|
| 17 | module.exports = parseOptions
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.