@bbn/bbn 1.0.294 → 1.0.295

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- export default function createObject(...originalArgs: any[]): any;
1
+ export default function createObject(...args: any[]): any;
@@ -1,15 +1,21 @@
1
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
2
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
3
+ if (ar || !(i in from)) {
4
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
5
+ ar[i] = from[i];
6
+ }
7
+ }
8
+ return to.concat(ar || Array.prototype.slice.call(from));
9
+ };
1
10
  import extend from './extend.js';
2
- // Args because of typescript doing errors
3
11
  export default function createObject() {
4
- var originalArgs = [];
12
+ var args = [];
5
13
  for (var _i = 0; _i < arguments.length; _i++) {
6
- originalArgs[_i] = arguments[_i];
14
+ args[_i] = arguments[_i];
7
15
  }
8
- var args = Array.from(arguments);
9
16
  var obj = Object.create(null);
10
17
  if (args.length) {
11
- args.unshift(obj);
12
- extend.apply(obj, args);
18
+ extend.apply(void 0, __spreadArray([obj], args, false));
13
19
  }
14
20
  return obj;
15
21
  }
@@ -24,7 +24,7 @@ export default function isObject() {
24
24
  return false;
25
25
  for (var _a = 0, args_1 = args; _a < args_1.length; _a++) {
26
26
  var a = args_1[_a];
27
- if ({}.toString.apply(a) !== "[object Object]") {
27
+ if ({}.toString.apply(a).substr(0, 7) !== "[object") {
28
28
  return false;
29
29
  }
30
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.294",
3
+ "version": "1.0.295",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",