Sha256: ece2ca2d636a95a07b657c75c58f30937a5faa0e708c1276dfd80d5cb96149f7

Contents?: true

Size: 1.8 KB

Versions: 54

Compression:

Stored size: 1.8 KB

Contents

{"version":3,"names":[],"mappings":"","sources":["nutella_lib.js"],"sourcesContent":["(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require==\"function\"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error(\"Cannot find module '\"+o+\"'\");throw f.code=\"MODULE_NOT_FOUND\",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require==\"function\"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){\n/******************\n * nutella_lib.js *\n ******************/\nvar unique = require('uniq');\n\nvar pippo = [1, 2, 2, 3, 4, 5, 5, 5, 6];\n\nconsole.log(unique(pippo));\n},{\"uniq\":2}],2:[function(require,module,exports){\n\"use strict\"\n\nfunction unique_pred(list, compare) {\n  var ptr = 1\n    , len = list.length\n    , a=list[0], b=list[0]\n  for(var i=1; i<len; ++i) {\n    b = a\n    a = list[i]\n    if(compare(a, b)) {\n      if(i === ptr) {\n        ptr++\n        continue\n      }\n      list[ptr++] = a\n    }\n  }\n  list.length = ptr\n  return list\n}\n\nfunction unique_eq(list) {\n  var ptr = 1\n    , len = list.length\n    , a=list[0], b = list[0]\n  for(var i=1; i<len; ++i, b=a) {\n    b = a\n    a = list[i]\n    if(a !== b) {\n      if(i === ptr) {\n        ptr++\n        continue\n      }\n      list[ptr++] = a\n    }\n  }\n  list.length = ptr\n  return list\n}\n\nfunction unique(list, compare, sorted) {\n  if(list.length === 0) {\n    return list\n  }\n  if(compare) {\n    if(!sorted) {\n      list.sort(compare)\n    }\n    return unique_pred(list, compare)\n  }\n  if(!sorted) {\n    list.sort()\n  }\n  return unique_eq(list)\n}\n\nmodule.exports = unique\n\n},{}]},{},[1]);\n"],"file":"nutella_lib.js","sourceRoot":"/source/"}

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
nutella_framework-0.9.2 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.9.1 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.9.0 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.8.0 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.7.3 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.7.2 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.7.1 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.7.0 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.6.21 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.6.20 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.6.19 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.6.18 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.6.17 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.6.16 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.6.15 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.6.13 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.6.12 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.6.11 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.6.10 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map
nutella_framework-0.6.9 example_framework_components/example_framework_web_interface/node_modules/nutella_lib/dist/nutella_lib.js.map