Socket
Socket
Sign inDemoInstall

@stdlib/function-ctor

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stdlib/function-ctor - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

CITATION.cff

2

docs/types/index.d.ts

@@ -19,3 +19,3 @@ /*

// TypeScript Version: 2.0
// TypeScript Version: 4.1

@@ -22,0 +22,0 @@ // EXPORTS //

@@ -39,3 +39,3 @@ /**

*/
var Fcn = Function;
var Fcn = Function; // eslint-disable-line stdlib/require-globals

@@ -42,0 +42,0 @@

{
"name": "@stdlib/function-ctor",
"version": "0.0.2",
"version": "0.1.0",
"description": "Function constructor.",

@@ -41,6 +41,6 @@ "license": "Apache-2.0",

"devDependencies": {
"@stdlib/bench": "^0.0.x",
"@stdlib/bench": "^0.0.12",
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
"istanbul": "^0.4.1",
"tap-spec": "5.x.x"
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
},

@@ -70,5 +70,5 @@ "engines": {

"funding": {
"type": "patreon",
"url": "https://www.patreon.com/athan"
"type": "opencollective",
"url": "https://opencollective.com/stdlib"
}
}

@@ -21,2 +21,13 @@ <!--

<details>
<summary>
About stdlib...
</summary>
<p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p>
<p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p>
<p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p>
<p>To join us in bringing numerical computing to the web, get started by checking us out on <a href="https://github.com/stdlib-js/stdlib">GitHub</a>, and please consider <a href="https://opencollective.com/stdlib">financially supporting stdlib</a>. We greatly appreciate your continued support!</p>
</details>
# Function

@@ -95,3 +106,3 @@

}
v = greet.name;
var v = greet.name;
// returns 'greet'

@@ -101,3 +112,3 @@

var fcn = new Function( 'name', 'return "Hello, "+name+"!"' );
var v = fcn.name;
v = fcn.name;
// returns 'anonymous'

@@ -128,3 +139,3 @@ ```

Calls the specified function witht he given `this` argument and arguments provided as an array-like object.
Calls the specified function with the given `this` argument and arguments provided as an array-like object.

@@ -146,3 +157,3 @@ ```javascript

```javascript
functiona add( x, y ) {
function add( x, y ) {
return x + y;

@@ -182,3 +193,3 @@ }

var v = add.toString();
// returns 'function add( x, y ) {\n return x + y;\n}'
// e.g., returns 'function add( x, y ) {\n return x + y;\n}'
```

@@ -268,3 +279,3 @@

Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].

@@ -282,4 +293,4 @@ </section>

[test-image]: https://github.com/stdlib-js/function-ctor/actions/workflows/test.yml/badge.svg?branch=v0.0.2
[test-url]: https://github.com/stdlib-js/function-ctor/actions/workflows/test.yml?query=branch:v0.0.2
[test-image]: https://github.com/stdlib-js/function-ctor/actions/workflows/test.yml/badge.svg?branch=v0.1.0
[test-url]: https://github.com/stdlib-js/function-ctor/actions/workflows/test.yml?query=branch:v0.1.0

@@ -297,3 +308,3 @@ [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/function-ctor/main.svg

[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
[chat-url]: https://gitter.im/stdlib-js/stdlib/
[chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im

@@ -300,0 +311,0 @@ [stdlib]: https://github.com/stdlib-js/stdlib

Sorry, the diff of this file is not supported yet

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