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

funql

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

funql - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

38

lib/to-function.js

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

var toArray = function (arguments) {
return Array.prototype.slice.call(arguments, 0);
};
var methodFunction = function (name) {
return function (obj) {
var args = toArray(arguments).slice(1);
return obj[name].apply(obj, args);
};
};
var propFunction = function (name) {
return function (obj) {
return obj[name];
};
};
var globalFnMap = {

@@ -5,3 +22,24 @@ abs: Math.abs,

min: Math.min,
round: Math.round,
pow: Math.pow,
sqrt: Math.sqrt,
slice: methodFunction('slice'),
concat: methodFunction('concat'),
indexOf: methodFunction('indexOf'),
lastIndexOf: methodFunction('lastIndexOf'),
replace: methodFunction('replace'),
split: methodFunction('split'),
substr: methodFunction('substr'),
substring: methodFunction('substring'),
toLowerCase: methodFunction('toLowerCase'),
toUpperCase: methodFunction('toUpperCase'),
trim: methodFunction('trim'),
trimLeft: methodFunction('trimLeft'),
trimRight: methodFunction('trimRight'),
join: methodFunction('join'),
reverse: methodFunction('reverse'),
length: propFunction('length'),
sum: function () {

@@ -8,0 +46,0 @@ var sum = 0;

2

package.json
{
"name": "funql",
"version": "0.0.10",
"version": "0.0.11",
"description": "FUNctional Query Language",

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

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