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

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

      
    
Rootfs path

      
    
Size
804 (804 bytes)
MD5
c2a6853a2189b99cb8eb9d690aae7d90
SHA1
973bea7fc9852f05f88b1e11a768b7b7ab786990
SHA256
90edd92b5e23f14f88910f4277ba72c0a4b2b32edfeb6fb71974d0877e5ab90d
SHA512

      
    
SHA1_git
d3e96eea980acbec55395e7599ee2f55b8725066
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
toPath.js | 804 bytes |

var arrayMap = require('./_arrayMap'), copyArray = require('./_copyArray'), isArray = require('./isArray'), isSymbol = require('./isSymbol'), stringToPath = require('./_stringToPath'), toKey = require('./_toKey'), toString = require('./toString'); /** * Converts `value` to a property path array. * * @static * @memberOf _ * @since 4.0.0 * @category Util * @param {*} value The value to convert. * @returns {Array} Returns the new property path array. * @example * * _.toPath('a.b.c'); * // => ['a', 'b', 'c'] * * _.toPath('a[0].b.c'); * // => ['a', '0', 'b', 'c'] */ function toPath(value) { if (isArray(value)) { return arrayMap(value, toKey); } return isSymbol(value) ? [value] : copyArray(stringToPath(toString(value))); } module.exports = toPath;
Package URL License Primary language
pkg:npm/acme-demo-app@1.0.0 JavaScript
pkg:npm/lodash@4.17.20 mit JavaScript