Przeglądaj źródła

note about where the hash code came from

Artur Paikin 6 lat temu
rodzic
commit
759f5212b8
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      examples/react-native-expo/App.js

+ 1 - 0
examples/react-native-expo/App.js

@@ -14,6 +14,7 @@ import Tus from '@uppy/tus'
 import UppyFilePicker from './react-native/file-picker'
 
 function hashCode (str) {
+  // from https://stackoverflow.com/a/8831937/151666
   var hash = 0
   if (str.length === 0) {
     return hash