Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

arc-object

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arc-object - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

test/constant.js

13

index.js

@@ -216,2 +216,6 @@ "use strict";

constant(_key,_val,_enumerable){
ArcObject.defineConstant(this,_key,_val,_enumerable);
}
//To string: [object ArcObject]

@@ -261,4 +265,13 @@ toString(){

}
static defineConstant(_obj,_key,_val,_enumerable){
Object.defineProperty(_obj, _key, {
value: _val,
writable : false,
enumerable : (_enumerable === false ? false : true),
configurable : false
});
}
}
module.exports = ArcObject;

2

package.json
{
"name": "arc-object",
"version": "1.1.0",
"version": "1.2.0",
"description": "An object convenience subclass",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -155,2 +155,5 @@ # arc-object [![Build Status](https://travis-ci.org/anyuzer/arc-object.svg?branch=master)](https://travis-ci.org/anyuzer/arc-object)

### .constant(key:Mixed,val:Mixed[,enumerable:Boolean])
Alias of static ArcObject.defineConstant()
### .quickFilterKeys(values:Array) / .quickFilterVals(values:Array)

@@ -187,2 +190,13 @@ Remove indexes from object based on either matching keys, or matching values.

### ArcObject.defineConstant(obj:Object,key:Mixed,val:Mixed [,enumerable:Boolean])
This is a convenience static method that does the following:
```js
Object.defineProperty(obj, key, {
value: val,
writable : false,
enumerable : (enumerable === false ? false : true),
configurable : false
});
```
## Testing

@@ -189,0 +203,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc