UNPKG

419 BJavaScriptView Raw
1/**
2 * Copyright (c) 2015-present, Facebook, Inc.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 *
7 * strict
8 */
9import orList from './orList';
10/**
11 * Given [ A, B, C ] return '"A", "B", or "C"'.
12 */
13
14export default function quotedOrList(items) {
15 return orList(items.map(function (item) {
16 return "\"".concat(item, "\"");
17 }));
18}
\No newline at end of file