🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

arrford

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arrford - npm Package Compare versions

Comparing version

to
1.3.2

2

bundle.js

@@ -1,1 +0,1 @@

(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.arrford=f()}})(function(){var define,module,exports;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){"use strict";var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol?"symbol":typeof obj};module.exports=function(input,oxford,join){var argLength=arguments.length;if(oxford===undefined){oxford=true}if(join===undefined){join="and"}if(!Array.isArray(input)){throw new TypeError("Expected input to be an array, got "+(typeof input==="undefined"?"undefined":_typeof(input)))}if(typeof oxford!=="boolean"){throw new TypeError("Expected oxford to be a boolean, got "+(typeof oxford==="undefined"?"undefined":_typeof(oxford)))}if(typeof join!=="string"){throw new TypeError("Expected join to be a string, got "+(typeof join==="undefined"?"undefined":_typeof(join)))}var allStrings=input.every(function(curr){return typeof curr==="string"});if(allStrings===false){throw new Error("Expected all elements of input array to be strings. Consider a map call to cast all elements to strings")}if(argLength!==1&&argLength!==2&&argLength!==3){throw new Error("Expected 1, 2 or 3 arguments, got "+argLength)}var len=input.length;if(len===0){throw new Error("Expected input array length >= 1, got "+input.length)}else if(len===1){return""+input[0]}else if(len===2){return input[0]+" "+join+" "+input[1]}else{var myString=""+input[0];for(var i=1;i<input.length;i++){if(i<input.length-1){myString+=", "+input[i]}else{myString+=oxford===true?", "+join+" "+input[i]:" "+join+" "+input[i]}}return myString}}},{}]},{},[1])(1)});
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.arrford=f()}})(function(){var define,module,exports;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){"use strict";var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol?"symbol":typeof obj};module.exports=function(input,oxford,join){var argLength=arguments.length;if(oxford===undefined){oxford=true}join=join||"and";if(!Array.isArray(input)){throw new TypeError("Expected input to be an array, got "+(typeof input==="undefined"?"undefined":_typeof(input)))}if(typeof oxford!=="boolean"){throw new TypeError("Expected oxford to be a boolean, got "+(typeof oxford==="undefined"?"undefined":_typeof(oxford)))}if(typeof join!=="string"){throw new TypeError("Expected join to be a string, got "+(typeof join==="undefined"?"undefined":_typeof(join)))}var allStrings=input.every(function(curr){return typeof curr==="string"});if(allStrings===false){throw new Error("Expected all elements of input array to be strings. Consider a map call to cast all elements to strings")}if(argLength!==1&&argLength!==2&&argLength!==3){throw new Error("Expected 1, 2 or 3 arguments, got "+argLength)}var len=input.length;if(len===0){throw new Error("Expected input array length >= 1, got "+input.length)}else if(len===1){return""+input[0]}else if(len===2){return input[0]+" "+join+" "+input[1]}else{var myString=""+input[0];for(var i=1;i<input.length;i++){if(i<input.length-1){myString+=", "+input[i]}else{myString+=oxford===true?", "+join+" "+input[i]:" "+join+" "+input[i]}}return myString}}},{}]},{},[1])(1)});
'use strict';
module.exports = function (input, oxford, join) {
const argLength = arguments.length;
if (oxford === undefined) {
oxford = true;
}
if (join === undefined) {
join = 'and';
}
join = join || 'and';

@@ -11,0 +10,0 @@ if (!Array.isArray(input)) {

{
"name": "arrford",
"version": "1.3.1",
"version": "1.3.2",
"description": "Array to human readable list converter",

@@ -5,0 +5,0 @@ "license": "MIT",