demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/lodash-4.17.20/slice.js

Path
demo___customer_pitch-c4152739-a50b-4b5b-9d4d-0561461666d9.zip-extract/_dependencies/npm/lodash-4.17.20/slice.js
Status
scanned
Type
file
Name
slice.js
Extension
.js
Programming language
JavaScript
Mime type
text/plain
File type
ASCII text
Tag

      
    
Rootfs path

      
    
Size
1032 (1.0 KB)
MD5
abe63011663e2fbbdcfa8c2f070fe220
SHA1
fffe0c44921ec28dd2fc1512493b912411d06628
SHA256
63af5e62744d8ba612c34f6a63135db37084aa8a8cd24ae3d5c9b359b6d9a709
SHA512

      
    
SHA1_git
f7324426a06b589ffe2feec2c2b184f564ad0b56
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
slice.js | 1.0 KB |

var baseSlice = require('./_baseSlice'), isIterateeCall = require('./_isIterateeCall'), toInteger = require('./toInteger'); /** * Creates a slice of `array` from `start` up to, but not including, `end`. * * **Note:** This method is used instead of * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are * returned. * * @static * @memberOf _ * @since 3.0.0 * @category Array * @param {Array} array The array to slice. * @param {number} [start=0] The start position. * @param {number} [end=array.length] The end position. * @returns {Array} Returns the slice of `array`. */ function slice(array, start, end) { var length = array == null ? 0 : array.length; if (!length) { return []; } if (end && typeof end != 'number' && isIterateeCall(array, start, end)) { start = 0; end = length; } else { start = start == null ? 0 : toInteger(start); end = end === undefined ? length : toInteger(end); } return baseSlice(array, start, end); } module.exports = slice;
URL Start line End line
https://mdn.io/Array/slice 9 9
Package URL License Primary language
pkg:npm/acme-demo-app@1.0.0 JavaScript
pkg:npm/lodash@4.17.20 mit JavaScript