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

mout

Package Overview
Dependencies
Maintainers
4
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mout - npm Package Compare versions

Comparing version 0.10.0 to 0.11.0

array/take.js

1

array.js

@@ -46,2 +46,3 @@

'split' : require('./array/split'),
'take' : require('./array/take'),
'toLookup' : require('./array/toLookup'),

@@ -48,0 +49,0 @@ 'union' : require('./array/union'),

mout changelog
==============
v0.11.0 (2014/11/17)
--------------------
- add `array/take`;
- remove unused variable from `date/totalDaysInMonth`;
- fix case insensitive RegExp cloning on `lang/clone`;
v0.10.0 (2014/09/02)

@@ -6,0 +13,0 @@ --------------------

4

date/totalDaysInMonth.js

@@ -11,5 +11,3 @@ var isDate = require('../lang/isDate');

if (isDate(fullYear)) {
var date = fullYear;
year = date.getFullYear();
monthIndex = date.getMonth();
monthIndex = fullYear.getMonth();
}

@@ -16,0 +14,0 @@

@@ -858,2 +858,17 @@ # array #

## take(times, callback, [thisObj]):Array
Builds a new array based on the returned values from the given `callback`.
```js
take(4, function(i, total) {
return i / total;
});
// > [0, 0.25, 0.5, 0.75]
```
see: [function/times](../function.html#times)
## toLookup(arr, key):Object

@@ -860,0 +875,0 @@

@@ -53,3 +53,3 @@ # lang #

var myObj = createObject(base, {
var myObject = createObject(base, {
name : 'Lorem Ipsum'

@@ -56,0 +56,0 @@ });

@@ -229,6 +229,8 @@ # random #

## randomString([length], [dictionary]):String
## randString([length, dictionary]):String
Returns a random string. By default returns string containing alphanumeric characters (lowercase and uppercase) with a length of 8.
Returns a random string.
By default returns string containing alphanumeric characters (lowercase and uppercase) with a length of 8.
### Arguments:

@@ -242,8 +244,7 @@

```js
randString(); // returns a string with length 8.
randString(12); // returns a string of length 12.
randString(-1); // returns a string of length 8.
randString(); // returns a string with length 8.
randString(12); // returns a string of length 12.
randString(-1); // returns a string of length 8.
randString(null, 'pew!'); // returns a random string of length 8 composed of 'p', 'e', 'w' and '!'.
randString(10, '0'); // always returns '0's of length 10.
randString(10, '0'); // always returns '0's of length 10.
randString(rand(8, 10)); // returns a random string with length between 8 and 10.

@@ -250,0 +251,0 @@ ```

/**@license
* mout v0.10.0 | http://moutjs.com | MIT license
* mout v0.11.0 | http://moutjs.com | MIT license
*/

@@ -9,3 +9,3 @@

module.exports = {
'VERSION' : '0.10.0',
'VERSION' : '0.11.0',
'array' : require('./array'),

@@ -12,0 +12,0 @@ 'collection' : require('./collection'),

@@ -35,3 +35,3 @@ var kindOf = require('./kindOf');

flags += r.global ? 'g' : '';
flags += r.ignorecase ? 'i' : '';
flags += r.ignoreCase ? 'i' : '';
return new RegExp(r.source, flags);

@@ -38,0 +38,0 @@ }

{
"name": "mout",
"description": "Modular Utilities",
"version": "0.10.0",
"version": "0.11.0",
"homepage": "http://moutjs.com/",

@@ -54,3 +54,3 @@ "contributors": [

"jshint": "2.x",
"rimraf": "~2.2.2",
"rimraf": "2.2.2",
"regenerate": "~0.5.4"

@@ -57,0 +57,0 @@ },

@@ -46,2 +46,3 @@ define(function(require){

'split' : require('./array/split'),
'take' : require('./array/take'),
'toLookup' : require('./array/toLookup'),

@@ -48,0 +49,0 @@ 'union' : require('./array/union'),

@@ -10,5 +10,3 @@ define(['../lang/isDate', './isLeapYear'], function (isDate, isLeapYear) {

if (isDate(fullYear)) {
var date = fullYear;
year = date.getFullYear();
monthIndex = date.getMonth();
monthIndex = fullYear.getMonth();
}

@@ -15,0 +13,0 @@

/**@license
* mout v0.10.0 | http://moutjs.com | MIT license
* mout v0.11.0 | http://moutjs.com | MIT license
*/

@@ -9,3 +9,3 @@ define(function(require){

return {
'VERSION' : '0.10.0',
'VERSION' : '0.11.0',
'array' : require('./array'),

@@ -12,0 +12,0 @@ 'collection' : require('./collection'),

@@ -33,3 +33,3 @@ define(['./kindOf', './isPlainObject', '../object/mixIn'], function (kindOf, isPlainObject, mixIn) {

flags += r.global ? 'g' : '';
flags += r.ignorecase ? 'i' : '';
flags += r.ignoreCase ? 'i' : '';
return new RegExp(r.source, flags);

@@ -36,0 +36,0 @@ }

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